From a0cb6dda9475454351e489d9a42e12c49c4c92b2 Mon Sep 17 00:00:00 2001 From: Gauvain 'GovanifY' Roussel-Tarbouriech Date: Sun, 16 Aug 2020 22:24:14 +0200 Subject: [PATCH] PNACH: apply repeating codes also on load --- pcsx2/Patch.h | 10 ---------- pcsx2/System/SysCoreThread.cpp | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/pcsx2/Patch.h b/pcsx2/Patch.h index c5c7362c49..bedec07c9c 100644 --- a/pcsx2/Patch.h +++ b/pcsx2/Patch.h @@ -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, diff --git a/pcsx2/System/SysCoreThread.cpp b/pcsx2/System/SysCoreThread.cpp index fb9a36f534..4b2d891695 100644 --- a/pcsx2/System/SysCoreThread.cpp +++ b/pcsx2/System/SysCoreThread.cpp @@ -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