Only WriteTrace in RomOpen if RomOpen != NULL

This commit is contained in:
LegendOfDragoon 2015-02-18 13:24:36 -08:00
parent a070d5f38c
commit 4d2611fadd
1 changed files with 2 additions and 2 deletions

View File

@ -127,12 +127,12 @@ void CPlugin::RomOpened()
if (m_RomOpen)
return;
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType());
if(RomOpen != NULL){
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): Before Rom Open",PluginType());
RomOpen();
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType());
}
m_RomOpen = true;
WriteTraceF(PluginTraceType(),__FUNCTION__ "(%s): After Rom Open",PluginType());
}
void CPlugin::RomClose()