Merge pull request #99 from LegendOfDragoon/master

Fix RomClosed() issue for RSP #1.1 plugins
This commit is contained in:
zilmar 2015-02-19 08:52:04 +11:00
commit 11c91e4f8d
1 changed files with 6 additions and 4 deletions

View File

@ -124,14 +124,16 @@ bool CPlugin::Load (const char * FileName)
void CPlugin::RomOpened() void CPlugin::RomOpened()
{ {
if (m_RomOpen || RomOpen == NULL) if (m_RomOpen)
return; return;
if(RomOpen != NULL){
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType()); WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType());
RomOpen(); RomOpen();
m_RomOpen = true;
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType()); WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType());
} }
m_RomOpen = true;
}
void CPlugin::RomClose() void CPlugin::RomClose()
{ {