diff options
| author | 2015-03-16 14:25:15 -0400 | |
|---|---|---|
| committer | 2015-03-16 14:25:15 -0400 | |
| commit | e4e2c929af8953fd9946d2556b112b80c9b0ffb5 (patch) | |
| tree | 2ea2d84aac8e0226f8cc089c5752178473ba4030 /src/core/hle | |
| parent | Merge pull request #657 from Subv/flip (diff) | |
| parent | arm_interface: Get rid of GetTicks. (diff) | |
| download | yuzu-e4e2c929af8953fd9946d2556b112b80c9b0ffb5.tar.gz yuzu-e4e2c929af8953fd9946d2556b112b80c9b0ffb5.tar.xz yuzu-e4e2c929af8953fd9946d2556b112b80c9b0ffb5.zip | |
Merge pull request #663 from lioncash/ticks
arm_interface: Get rid of GetTicks.
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/hid/hid.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/svc.cpp | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index e7f9bec7e..8adb03f2e 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include "core/hle/service/hid/hid_spvr.h" | 7 | #include "core/hle/service/hid/hid_spvr.h" |
| 8 | #include "core/hle/service/hid/hid_user.h" | 8 | #include "core/hle/service/hid/hid_user.h" |
| 9 | 9 | ||
| 10 | #include "core/arm/arm_interface.h" | 10 | #include "core/core_timing.h" |
| 11 | #include "core/hle/kernel/event.h" | 11 | #include "core/hle/kernel/event.h" |
| 12 | #include "core/hle/kernel/shared_memory.h" | 12 | #include "core/hle/kernel/shared_memory.h" |
| 13 | #include "core/hle/hle.h" | 13 | #include "core/hle/hle.h" |
| @@ -82,7 +82,7 @@ void HIDUpdate() { | |||
| 82 | // If we just updated index 0, provide a new timestamp | 82 | // If we just updated index 0, provide a new timestamp |
| 83 | if (mem->pad.index == 0) { | 83 | if (mem->pad.index == 0) { |
| 84 | mem->pad.index_reset_ticks_previous = mem->pad.index_reset_ticks; | 84 | mem->pad.index_reset_ticks_previous = mem->pad.index_reset_ticks; |
| 85 | mem->pad.index_reset_ticks = (s64)Core::g_app_core->GetTicks(); | 85 | mem->pad.index_reset_ticks = (s64)CoreTiming::GetTicks(); |
| 86 | } | 86 | } |
| 87 | 87 | ||
| 88 | mem->touch.index = next_touch_index; | 88 | mem->touch.index = next_touch_index; |
| @@ -102,7 +102,7 @@ void HIDUpdate() { | |||
| 102 | // If we just updated index 0, provide a new timestamp | 102 | // If we just updated index 0, provide a new timestamp |
| 103 | if (mem->touch.index == 0) { | 103 | if (mem->touch.index == 0) { |
| 104 | mem->touch.index_reset_ticks_previous = mem->touch.index_reset_ticks; | 104 | mem->touch.index_reset_ticks_previous = mem->touch.index_reset_ticks; |
| 105 | mem->touch.index_reset_ticks = (s64)Core::g_app_core->GetTicks(); | 105 | mem->touch.index_reset_ticks = (s64)CoreTiming::GetTicks(); |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | // Signal both handles when there's an update to Pad or touch | 108 | // Signal both handles when there's an update to Pad or touch |
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 17385f9b2..bbb4eb9cd 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp | |||
| @@ -7,8 +7,9 @@ | |||
| 7 | #include "common/string_util.h" | 7 | #include "common/string_util.h" |
| 8 | #include "common/symbols.h" | 8 | #include "common/symbols.h" |
| 9 | 9 | ||
| 10 | #include "core/arm/arm_interface.h" | 10 | #include "core/core_timing.h" |
| 11 | #include "core/mem_map.h" | 11 | #include "core/mem_map.h" |
| 12 | #include "core/arm/arm_interface.h" | ||
| 12 | 13 | ||
| 13 | #include "core/hle/kernel/address_arbiter.h" | 14 | #include "core/hle/kernel/address_arbiter.h" |
| 14 | #include "core/hle/kernel/event.h" | 15 | #include "core/hle/kernel/event.h" |
| @@ -551,7 +552,7 @@ static void SleepThread(s64 nanoseconds) { | |||
| 551 | 552 | ||
| 552 | /// This returns the total CPU ticks elapsed since the CPU was powered-on | 553 | /// This returns the total CPU ticks elapsed since the CPU was powered-on |
| 553 | static s64 GetSystemTick() { | 554 | static s64 GetSystemTick() { |
| 554 | return (s64)Core::g_app_core->GetTicks(); | 555 | return (s64)CoreTiming::GetTicks(); |
| 555 | } | 556 | } |
| 556 | 557 | ||
| 557 | /// Creates a memory block at the specified address with the specified permissions and size | 558 | /// Creates a memory block at the specified address with the specified permissions and size |