mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
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:
@ -36,7 +36,6 @@
|
|||||||
#include "CPUDetect.h"
|
#include "CPUDetect.h"
|
||||||
#include "CoreTiming.h"
|
#include "CoreTiming.h"
|
||||||
#include "Boot/Boot.h"
|
#include "Boot/Boot.h"
|
||||||
#include "PatchEngine.h"
|
|
||||||
|
|
||||||
#include "HW/Memmap.h"
|
#include "HW/Memmap.h"
|
||||||
#include "HW/PeripheralInterface.h"
|
#include "HW/PeripheralInterface.h"
|
||||||
@ -628,10 +627,6 @@ void Callback_VideoCopiedToXFB()
|
|||||||
frames = 0;
|
frames = 0;
|
||||||
Timer.Update();
|
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)
|
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();
|
SerialInterface::UpdateDevices();
|
||||||
CoreTiming::ScheduleEvent(SI_PERIOD-cyclesLate, et_SI);
|
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)
|
void DecrementerCallback(u64 userdata, int cyclesLate)
|
||||||
|
Reference in New Issue
Block a user