mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: Use incoming settings when applying settings
The old config settings were wrongly used when determining whether to load patches, cheats and widescreen hacks. These settings needed to be applied twice to actually take effect if they were changed while a game is running. Use the incoming settings so the settings only need to be applied once.
This commit is contained in:
parent
055b9c57e7
commit
f97b556e23
|
@ -373,7 +373,7 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src )
|
|||
gameMemCardFilter = game.getString("MemCardFilter");
|
||||
}
|
||||
|
||||
if (EmuConfig.EnablePatches)
|
||||
if (fixup.EnablePatches)
|
||||
{
|
||||
if (int patches = InitPatches(gameCRC, game))
|
||||
{
|
||||
|
@ -410,11 +410,11 @@ void AppCoreThread::ApplySettings( const Pcsx2Config& src )
|
|||
}
|
||||
|
||||
// regular cheat patches
|
||||
if (EmuConfig.EnableCheats)
|
||||
if (fixup.EnableCheats)
|
||||
gameCheats.Printf(L" [%d Cheats]", LoadCheats(gameCRC, GetCheatsFolder(), L"Cheats"));
|
||||
|
||||
// wide screen patches
|
||||
if (EmuConfig.EnableWideScreenPatches)
|
||||
if (fixup.EnableWideScreenPatches)
|
||||
{
|
||||
if (int numberLoadedWideScreenPatches = LoadCheats(gameCRC, GetCheatsWsFolder(), L"Widescreen hacks"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue