Only apply patches in the SI Callback
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2327 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bd01520260
commit
757d8728b7
|
@ -36,7 +36,6 @@
|
|||
#include "CPUDetect.h"
|
||||
#include "CoreTiming.h"
|
||||
#include "Boot/Boot.h"
|
||||
#include "PatchEngine.h"
|
||||
|
||||
#include "HW/Memmap.h"
|
||||
#include "HW/PeripheralInterface.h"
|
||||
|
@ -628,10 +627,6 @@ void Callback_VideoCopiedToXFB()
|
|||
frames = 0;
|
||||
Timer.Update();
|
||||
}
|
||||
|
||||
// TODO: hm, are these really safe to call from the video thread?
|
||||
PatchEngine::ApplyFramePatches();
|
||||
PatchEngine::ApplyARPatches();
|
||||
}
|
||||
|
||||
// __________________________________________________________________________________________________
|
||||
|
|
|
@ -185,13 +185,13 @@ void VICallback(u64 userdata, int cyclesLate)
|
|||
|
||||
void SICallback(u64 userdata, int cyclesLate)
|
||||
{
|
||||
// This is once per frame - good candidate for patching stuff
|
||||
PatchEngine::ApplyFramePatches();
|
||||
// Apply AR cheats
|
||||
PatchEngine::ApplyARPatches();
|
||||
// OK, do what we are here to do.
|
||||
SerialInterface::UpdateDevices();
|
||||
CoreTiming::ScheduleEvent(SI_PERIOD-cyclesLate, et_SI);
|
||||
|
||||
// This is once per frame - good candidate for patching stuff
|
||||
// Patch mem and run the Action Replay
|
||||
PatchEngine::ApplyFramePatches();
|
||||
PatchEngine::ApplyARPatches();
|
||||
}
|
||||
|
||||
void DecrementerCallback(u64 userdata, int cyclesLate)
|
||||
|
|
Loading…
Reference in New Issue