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(); }
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(); }
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(); } }
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); } }
void CNotificationSettings::RegisterNotifications() { g_Settings->RegisterChangeCB(UserInterface_InFullScreen, this, (CSettings::SettingChangedFunc)StaticRefreshSettings); RefreshSettings(); }