Core: reset run event in CRSP_Plugin after rom close

This commit is contained in:
zilmar 2023-09-28 07:19:20 +09:30
parent f817becf9c
commit 99417fc5d9
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,7 @@ void CRSP_Plugin::RomOpened(RenderWindow * Render)
m_DlistCount = 0; m_DlistCount = 0;
m_UnknownCount = 0; m_UnknownCount = 0;
m_RomOpened = true; m_RomOpened = true;
m_RunEvent.Reset();
m_Thread.Start(this); m_Thread.Start(this);
} }
@ -107,6 +108,7 @@ void CRSP_Plugin::RomClose(RenderWindow * Render)
m_Thread.Terminate(); m_Thread.Terminate();
} }
CPlugin::RomClose(Render); CPlugin::RomClose(Render);
m_RunEvent.Reset();
m_Plugins = nullptr; m_Plugins = nullptr;
m_System = nullptr; m_System = nullptr;
} }