PNACH: apply repeating codes also on load

This commit is contained in:
Gauvain 'GovanifY' Roussel-Tarbouriech 2020-08-16 22:24:14 +02:00 committed by refractionpcsx2
parent 97a24c006a
commit a0cb6dda94
2 changed files with 1 additions and 10 deletions

View File

@ -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,

View File

@ -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