diff options
| author | 2015-04-27 22:46:19 -0400 | |
|---|---|---|
| committer | 2015-05-01 18:27:05 -0400 | |
| commit | 5a855bdb2f263c143c54c0f37609aaa22e61c281 (patch) | |
| tree | 2fe59e088641c1fefabfc840bc3dd69da622e0af /src/core/core_timing.cpp | |
| parent | HLE: Properly initialize and shutdown remaining modules. (diff) | |
| download | yuzu-5a855bdb2f263c143c54c0f37609aaa22e61c281.tar.gz yuzu-5a855bdb2f263c143c54c0f37609aaa22e61c281.tar.xz yuzu-5a855bdb2f263c143c54c0f37609aaa22e61c281.zip | |
CoreTiming: Initialize static variables at bootup.
Diffstat (limited to 'src/core/core_timing.cpp')
| -rw-r--r-- | src/core/core_timing.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 6f716b1ca..f70c84c3d 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp | |||
| @@ -160,6 +160,16 @@ void Init() { | |||
| 160 | last_global_time_us = 0; | 160 | last_global_time_us = 0; |
| 161 | has_ts_events = 0; | 161 | has_ts_events = 0; |
| 162 | mhz_change_callbacks.clear(); | 162 | mhz_change_callbacks.clear(); |
| 163 | |||
| 164 | first = nullptr; | ||
| 165 | ts_first = nullptr; | ||
| 166 | ts_last = nullptr; | ||
| 167 | |||
| 168 | event_pool = nullptr; | ||
| 169 | event_ts_pool = nullptr; | ||
| 170 | allocated_ts_events = 0; | ||
| 171 | |||
| 172 | advance_callback = nullptr; | ||
| 163 | } | 173 | } |
| 164 | 174 | ||
| 165 | void Shutdown() { | 175 | void Shutdown() { |