diff options
Diffstat (limited to 'src/core/hle/svc.cpp')
| -rw-r--r-- | src/core/hle/svc.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 8720bed31..4f5ad805e 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -330,6 +330,11 @@ void SleepThread(s64 nanoseconds) { | |||
| 330 | DEBUG_LOG(SVC, "called nanoseconds=%d", nanoseconds); | 330 | DEBUG_LOG(SVC, "called nanoseconds=%d", nanoseconds); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | /// This returns the total CPU ticks elapsed since the CPU was powered-on | ||
| 334 | s64 GetSystemTick() { | ||
| 335 | return (s64)Core::g_app_core->GetTicks(); | ||
| 336 | } | ||
| 337 | |||
| 333 | const HLE::FunctionDef SVC_Table[] = { | 338 | const HLE::FunctionDef SVC_Table[] = { |
| 334 | {0x00, nullptr, "Unknown"}, | 339 | {0x00, nullptr, "Unknown"}, |
| 335 | {0x01, HLE::Wrap<ControlMemory>, "ControlMemory"}, | 340 | {0x01, HLE::Wrap<ControlMemory>, "ControlMemory"}, |
| @@ -371,7 +376,7 @@ const HLE::FunctionDef SVC_Table[] = { | |||
| 371 | {0x25, HLE::Wrap<WaitSynchronizationN>, "WaitSynchronizationN"}, | 376 | {0x25, HLE::Wrap<WaitSynchronizationN>, "WaitSynchronizationN"}, |
| 372 | {0x26, nullptr, "SignalAndWait"}, | 377 | {0x26, nullptr, "SignalAndWait"}, |
| 373 | {0x27, HLE::Wrap<DuplicateHandle>, "DuplicateHandle"}, | 378 | {0x27, HLE::Wrap<DuplicateHandle>, "DuplicateHandle"}, |
| 374 | {0x28, nullptr, "GetSystemTick"}, | 379 | {0x28, HLE::Wrap<GetSystemTick>, "GetSystemTick"}, |
| 375 | {0x29, nullptr, "GetHandleInfo"}, | 380 | {0x29, nullptr, "GetHandleInfo"}, |
| 376 | {0x2A, nullptr, "GetSystemInfo"}, | 381 | {0x2A, nullptr, "GetSystemInfo"}, |
| 377 | {0x2B, nullptr, "GetProcessInfo"}, | 382 | {0x2B, nullptr, "GetProcessInfo"}, |