From a070d5f38c7e18ec2297e3016939e2f13c8c28e3 Mon Sep 17 00:00:00 2001 From: LegendOfDragoon Date: Wed, 18 Feb 2015 13:12:42 -0800 Subject: [PATCH] Fix RomClosed() issue for RSP #1.1 plugins RSP #1.1 does not have RomOpened() so m_RomOpen is never true. Since m_RomOpen is never true, RomClosed() never gets called. --- Source/Project64/Plugins/Plugin Base.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Project64/Plugins/Plugin Base.cpp b/Source/Project64/Plugins/Plugin Base.cpp index 40f2fe5b7..4b7b259f3 100644 --- a/Source/Project64/Plugins/Plugin Base.cpp +++ b/Source/Project64/Plugins/Plugin Base.cpp @@ -124,11 +124,13 @@ bool CPlugin::Load (const char * FileName) void CPlugin::RomOpened() { - if (m_RomOpen || RomOpen == NULL) + if (m_RomOpen) return; WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType()); - RomOpen(); + if(RomOpen != NULL){ + RomOpen(); + } m_RomOpen = true; WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType()); }