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