From 44081671aca4ed9f78e8519ed11affbfaf977c91 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Wed, 30 Mar 2022 19:26:48 +0100 Subject: [PATCH] Config: Fix saving/loading EnableGameFixes in Core --- pcsx2-qt/Settings/AdvancedSystemSettingsWidget.cpp | 2 +- pcsx2/Config.h | 3 +++ pcsx2/Pcsx2Config.cpp | 6 ++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pcsx2-qt/Settings/AdvancedSystemSettingsWidget.cpp b/pcsx2-qt/Settings/AdvancedSystemSettingsWidget.cpp index 374adf2ed7..53896a3457 100644 --- a/pcsx2-qt/Settings/AdvancedSystemSettingsWidget.cpp +++ b/pcsx2-qt/Settings/AdvancedSystemSettingsWidget.cpp @@ -42,7 +42,7 @@ AdvancedSystemSettingsWidget::AdvancedSystemSettingsWidget(SettingsDialog* dialo 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::BindWidgetToFloatSetting(sif, m_ui.ntscFrameRate, "EmuCore/GS", "FramerateNTSC", 59.94f); diff --git a/pcsx2/Config.h b/pcsx2/Config.h index d1e5d95902..8ee823d5e1 100644 --- a/pcsx2/Config.h +++ b/pcsx2/Config.h @@ -932,6 +932,9 @@ struct Pcsx2Config EnableWideScreenPatches : 1, #ifndef DISABLE_RECORDING EnableRecordingTools : 1, +#endif +#ifdef PCSX2_CORE + EnableGameFixes : 1, // enables automatic game fixes #endif // when enabled uses BOOT2 injection, skipping sony bios splashes UseBOOT2Injection : 1, diff --git a/pcsx2/Pcsx2Config.cpp b/pcsx2/Pcsx2Config.cpp index 18dd96cfc4..e66def5957 100644 --- a/pcsx2/Pcsx2Config.cpp +++ b/pcsx2/Pcsx2Config.cpp @@ -1017,6 +1017,9 @@ Pcsx2Config::Pcsx2Config() McdEnableEjection = true; McdFolderAutoManage = true; EnablePatches = true; +#ifdef PCSX2_CORE + EnableGameFixes = true; +#endif BackupSavestate = true; #ifdef __WXMSW__ @@ -1049,6 +1052,9 @@ void Pcsx2Config::LoadSave(SettingsWrapper& wrap) SettingsWrapBitBool(EnableWideScreenPatches); #ifndef DISABLE_RECORDING SettingsWrapBitBool(EnableRecordingTools); +#endif +#ifdef PCSX2_CORE + SettingsWrapBitBool(EnableGameFixes); #endif SettingsWrapBitBool(ConsoleToStdio); SettingsWrapBitBool(HostFs);