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.
This commit is contained in:
LegendOfDragoon 2015-02-18 13:12:42 -08:00
parent 9d607af14f
commit a070d5f38c
1 changed files with 4 additions and 2 deletions

View File

@ -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());
}