diff options
author | bunnei <bunneidev@gmail.com> | 2014-08-15 02:01:02 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-08-19 03:26:20 +0200 |
commit | 10f25866e268756cc32e2e783b3377c34529f7e6 (patch) | |
tree | 92909d5c039a62e69fe2bc91d2a6e3c4de8b4f79 /src/core/hle/svc.cpp | |
parent | Merge pull request #57 from lioncash/str (diff) | |
download | yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar.gz yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar.bz2 yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar.lz yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar.xz yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.tar.zst yuzu-10f25866e268756cc32e2e783b3377c34529f7e6.zip |
Diffstat (limited to '')
-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) { DEBUG_LOG(SVC, "called nanoseconds=%d", nanoseconds); } +/// This returns the total CPU ticks elapsed since the CPU was powered-on +s64 GetSystemTick() { + return (s64)Core::g_app_core->GetTicks(); +} + const HLE::FunctionDef SVC_Table[] = { {0x00, nullptr, "Unknown"}, {0x01, HLE::Wrap<ControlMemory>, "ControlMemory"}, @@ -371,7 +376,7 @@ const HLE::FunctionDef SVC_Table[] = { {0x25, HLE::Wrap<WaitSynchronizationN>, "WaitSynchronizationN"}, {0x26, nullptr, "SignalAndWait"}, {0x27, HLE::Wrap<DuplicateHandle>, "DuplicateHandle"}, - {0x28, nullptr, "GetSystemTick"}, + {0x28, HLE::Wrap<GetSystemTick>, "GetSystemTick"}, {0x29, nullptr, "GetHandleInfo"}, {0x2A, nullptr, "GetSystemInfo"}, {0x2B, nullptr, "GetProcessInfo"}, |