From 99417fc5d90077637864abe4fe882b077a5f2b1e Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 28 Sep 2023 07:19:20 +0930 Subject: [PATCH] Core: reset run event in CRSP_Plugin after rom close --- Source/Project64-core/Plugins/RSPPlugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Project64-core/Plugins/RSPPlugin.cpp b/Source/Project64-core/Plugins/RSPPlugin.cpp index be3d247ac..0dd5bcc3e 100644 --- a/Source/Project64-core/Plugins/RSPPlugin.cpp +++ b/Source/Project64-core/Plugins/RSPPlugin.cpp @@ -87,6 +87,7 @@ void CRSP_Plugin::RomOpened(RenderWindow * Render) m_DlistCount = 0; m_UnknownCount = 0; m_RomOpened = true; + m_RunEvent.Reset(); m_Thread.Start(this); } @@ -107,6 +108,7 @@ void CRSP_Plugin::RomClose(RenderWindow * Render) m_Thread.Terminate(); } CPlugin::RomClose(Render); + m_RunEvent.Reset(); m_Plugins = nullptr; m_System = nullptr; }