mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
CoreTiming: Refactor to class.
This commit is contained in:
@ -37,6 +37,7 @@ typedef SSIZE_T ssize_t;
|
||||
#include "Core/PowerPC/Gekko.h"
|
||||
#include "Core/PowerPC/PPCCache.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
namespace GDBStub
|
||||
{
|
||||
@ -128,7 +129,7 @@ static void UpdateCallback(Core::System& system, u64 userdata, s64 cycles_late)
|
||||
{
|
||||
ProcessCommands(false);
|
||||
if (IsActive())
|
||||
CoreTiming::ScheduleEvent(GDB_UPDATE_CYCLES, s_update_event);
|
||||
Core::System::GetInstance().GetCoreTiming().ScheduleEvent(GDB_UPDATE_CYCLES, s_update_event);
|
||||
}
|
||||
|
||||
static u8 ReadByte()
|
||||
@ -1068,8 +1069,10 @@ static void InitGeneric(int domain, const sockaddr* server_addr, socklen_t serve
|
||||
#endif
|
||||
s_tmpsock = -1;
|
||||
|
||||
s_update_event = CoreTiming::RegisterEvent("GDBStubUpdate", UpdateCallback);
|
||||
CoreTiming::ScheduleEvent(GDB_UPDATE_CYCLES, s_update_event);
|
||||
auto& system = Core::System::GetInstance();
|
||||
auto& core_timing = system.GetCoreTiming();
|
||||
s_update_event = core_timing.RegisterEvent("GDBStubUpdate", UpdateCallback);
|
||||
core_timing.ScheduleEvent(GDB_UPDATE_CYCLES, s_update_event);
|
||||
s_has_control = true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user