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:
parent
9d607af14f
commit
a070d5f38c
|
@ -124,11 +124,13 @@ 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());
|
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType());
|
||||||
|
if(RomOpen != NULL){
|
||||||
RomOpen();
|
RomOpen();
|
||||||
|
}
|
||||||
m_RomOpen = true;
|
m_RomOpen = true;
|
||||||
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType());
|
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue