mirror of https://github.com/PCSX2/pcsx2.git
PNACH: apply repeating codes also on load
This commit is contained in:
parent
97a24c006a
commit
a0cb6dda94
|
@ -61,16 +61,6 @@ enum patch_data_type {
|
|||
// PCSX2 currently supports the following values:
|
||||
// 0 - apply the patch line once on game boot/startup
|
||||
// 1 - apply the patch line continuously (technically - on every vsync)
|
||||
// Note:
|
||||
// - while it may seem that a value of 1 does the same as 0, but also later
|
||||
// continues to apply the patch on every vsync - it's not.
|
||||
// The current (and past) behavior is that these patches are applied at different
|
||||
// places at the code, and it's possible, depending on circumstances, that 0 patches
|
||||
// will get applied before the first vsync and therefore earlier than 1 patches.
|
||||
// - There's no "place" value which indicates to apply both once on startup
|
||||
// and then also continuously, however such behavior can be achieved by
|
||||
// duplicating the line where one has a 0 place and the other has a 1 place.
|
||||
// FIXME: Do we want to apply the place=1 patches also on startup? (when the 0 patches are applied)
|
||||
enum patch_place_type {
|
||||
PPT_ONCE_ON_LOAD = 0,
|
||||
PPT_CONTINUOUSLY = 1,
|
||||
|
|
|
@ -256,6 +256,7 @@ void SysCoreThread::GameStartingInThread()
|
|||
sApp.PostAppMethod(&Pcsx2App::resetDebugger);
|
||||
|
||||
ApplyLoadedPatches(PPT_ONCE_ON_LOAD);
|
||||
ApplyLoadedPatches(PPT_CONTINUOUSLY);
|
||||
#ifdef USE_SAVESLOT_UI_UPDATES
|
||||
UI_UpdateSysControls();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue