diff options
author | bunnei <bunneidev@gmail.com> | 2015-04-28 04:12:35 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-02 00:27:03 +0200 |
commit | c7dc799e193d1ced47b21465f2e664908ae32ebc (patch) | |
tree | ceed823c1eeb6ca3abe248786b2e72538cd380c3 /src/core/hle/kernel/timer.cpp | |
parent | HW: Properly initialize and shutdown all modules. (diff) | |
download | yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar.gz yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar.bz2 yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar.lz yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar.xz yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.tar.zst yuzu-c7dc799e193d1ced47b21465f2e664908ae32ebc.zip |
Diffstat (limited to 'src/core/hle/kernel/timer.cpp')
-rw-r--r-- | src/core/hle/kernel/timer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/kernel/timer.cpp b/src/core/hle/kernel/timer.cpp index 1ec2a4b10..36979248d 100644 --- a/src/core/hle/kernel/timer.cpp +++ b/src/core/hle/kernel/timer.cpp @@ -12,7 +12,7 @@ namespace Kernel { /// The event type of the generic timer callback event -static int timer_callback_event_type = -1; +static int timer_callback_event_type; // TODO(yuriks): This can be removed if Timer objects are explicitly pooled in the future, allowing // us to simply use a pool index or similar. static Kernel::HandleTable timer_callback_handle_table; @@ -89,6 +89,7 @@ static void TimerCallback(u64 timer_handle, int cycles_late) { } void TimersInit() { + timer_callback_handle_table.Clear(); timer_callback_event_type = CoreTiming::RegisterEvent("TimerCallback", TimerCallback); } |