Core/SystemTimers: Refactor to class, move to System.

This commit is contained in:
Admiral H. Curtiss committed 2024-01-04 23:35:19 +01:00
1 parent 9c91b5edca
commit 07c035e659
35 files changed
+258 -185

No files matched your search

+1 -1
View File
@@ -71,7 +71,7 @@ IPCReply GetCPUSpeed(Core::System& system, const IOCtlVRequest& request)
const bool overclock_enabled = Config::Get(Config::MAIN_OVERCLOCK_ENABLE);
const float oc = overclock_enabled ? Config::Get(Config::MAIN_OVERCLOCK) : 1.0f;
const u32 core_clock = u32(float(SystemTimers::GetTicksPerSecond()) * oc);
const u32 core_clock = u32(float(system.GetSystemTimers().GetTicksPerSecond()) * oc);
auto& memory = system.GetMemory();
memory.Write_U32(core_clock, request.io_vectors[0].address);