Exemplo n.º 1
0
void	CASettingsStorage::RemoveAllValues()
{
	//	make sure our cache is up to date
	RefreshSettings();
	
	//	remove the given key
	CFDictionaryRemoveAllValues(mSettingsCache);
	
	//	write the settings to the file
	SaveSettings();
}
Exemplo n.º 2
0
void	CASettingsStorage::RemoveValue(CFStringRef inKey)
{
	//	make sure our cache is up to date
	RefreshSettings();
	
	//	remove the given key
	CFDictionaryRemoveValue(mSettingsCache, inKey);
	
	//	write the settings to the file
	SaveSettings();
}
Exemplo n.º 3
0
void	CASettingsStorage::SetCFTypeValue(CFStringRef inKey, CFTypeRef inValue)
{
	//	make sure our cache is up to date
	RefreshSettings();
	
	//	add the new key/value to the dictionary
	CFDictionarySetValue(mSettingsCache, inKey, inValue);
	
	//	write the settings to the file
	SaveSettings();
}
CRecompilerSettings::CRecompilerSettings()
{
	m_RefCount += 1;
	if (m_RefCount == 1)
	{
		g_Settings->RegisterChangeCB(Debugger_ShowRecompMemSize,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
		g_Settings->RegisterChangeCB(Debugger_ProfileCode,this,(CSettings::SettingChangedFunc)StaticRefreshSettings);
		
		RefreshSettings();
	}
}
Exemplo n.º 5
0
CN64SystemSettings::CN64SystemSettings()
{
	m_RefCount += 1;
	if (m_RefCount == 1)
	{
		g_Settings->RegisterChangeCB(UserInterface_BasicMode,NULL,RefreshSettings);
		g_Settings->RegisterChangeCB(UserInterface_ShowCPUPer,NULL,RefreshSettings);
		g_Settings->RegisterChangeCB(UserInterface_DisplayFrameRate,NULL,RefreshSettings);

		g_Settings->RegisterChangeCB(Debugger_ProfileCode,NULL,RefreshSettings);
		g_Settings->RegisterChangeCB(Debugger_ShowDListAListCount,NULL,RefreshSettings);

		g_Settings->RegisterChangeCB(GameRunning_LimitFPS,NULL,RefreshSettings);

		RefreshSettings(NULL);
	}
}
Exemplo n.º 6
0
void CNotificationSettings::RegisterNotifications()
{
    g_Settings->RegisterChangeCB(UserInterface_InFullScreen, this, (CSettings::SettingChangedFunc)StaticRefreshSettings);
    RefreshSettings();
}