Move initialize_timebased_time call to a safer spot

This commit is contained in:
Eladash 2023-12-31 20:27:33 +02:00 committed by Elad Ashkenazi
parent e6f1e598a9
commit 87fc5e4923
2 changed files with 3 additions and 3 deletions

View file

@ -3287,8 +3287,6 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
{
cpu_thread::cleanup();
initialize_timebased_time(0, true);
lv2_obj::cleanup();
g_fxo->reset();
@ -3342,6 +3340,8 @@ void Emulator::Kill(bool allow_autoexit, bool savestate, savestate_stage* save_s
m_savestate_extension_flags1 = {};
m_savestate_pending = false;
initialize_timebased_time(0, true);
// Complete the operation
m_state = system_state::stopped;
GetCallbacks().on_stop();