Config: Fix saving/loading EnableGameFixes in Core

This commit is contained in:
TheLastRar 2022-03-30 19:26:48 +01:00 committed by refractionpcsx2
parent 462b304bea
commit 44081671ac
3 changed files with 10 additions and 1 deletions

View File

@ -42,7 +42,7 @@ AdvancedSystemSettingsWidget::AdvancedSystemSettingsWidget(SettingsDialog* dialo
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.iopRecompiler, "EmuCore/CPU/Recompiler", "EnableIOP", true); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.iopRecompiler, "EmuCore/CPU/Recompiler", "EnableIOP", true);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.gameFixes, "", "EnableGameFixes", true); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.gameFixes, "EmuCore", "EnableGameFixes", true);
SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.patches, "EmuCore", "EnablePatches", true); SettingWidgetBinder::BindWidgetToBoolSetting(sif, m_ui.patches, "EmuCore", "EnablePatches", true);
SettingWidgetBinder::BindWidgetToFloatSetting(sif, m_ui.ntscFrameRate, "EmuCore/GS", "FramerateNTSC", 59.94f); SettingWidgetBinder::BindWidgetToFloatSetting(sif, m_ui.ntscFrameRate, "EmuCore/GS", "FramerateNTSC", 59.94f);

View File

@ -932,6 +932,9 @@ struct Pcsx2Config
EnableWideScreenPatches : 1, EnableWideScreenPatches : 1,
#ifndef DISABLE_RECORDING #ifndef DISABLE_RECORDING
EnableRecordingTools : 1, EnableRecordingTools : 1,
#endif
#ifdef PCSX2_CORE
EnableGameFixes : 1, // enables automatic game fixes
#endif #endif
// when enabled uses BOOT2 injection, skipping sony bios splashes // when enabled uses BOOT2 injection, skipping sony bios splashes
UseBOOT2Injection : 1, UseBOOT2Injection : 1,

View File

@ -1017,6 +1017,9 @@ Pcsx2Config::Pcsx2Config()
McdEnableEjection = true; McdEnableEjection = true;
McdFolderAutoManage = true; McdFolderAutoManage = true;
EnablePatches = true; EnablePatches = true;
#ifdef PCSX2_CORE
EnableGameFixes = true;
#endif
BackupSavestate = true; BackupSavestate = true;
#ifdef __WXMSW__ #ifdef __WXMSW__
@ -1049,6 +1052,9 @@ void Pcsx2Config::LoadSave(SettingsWrapper& wrap)
SettingsWrapBitBool(EnableWideScreenPatches); SettingsWrapBitBool(EnableWideScreenPatches);
#ifndef DISABLE_RECORDING #ifndef DISABLE_RECORDING
SettingsWrapBitBool(EnableRecordingTools); SettingsWrapBitBool(EnableRecordingTools);
#endif
#ifdef PCSX2_CORE
SettingsWrapBitBool(EnableGameFixes);
#endif #endif
SettingsWrapBitBool(ConsoleToStdio); SettingsWrapBitBool(ConsoleToStdio);
SettingsWrapBitBool(HostFs); SettingsWrapBitBool(HostFs);