RMG-Core: close ROM on failure in CoreStartEmulation()

This commit is contained in:
Rosalie Wanders
2022-01-05 16:40:36 +01:00
parent 8814d5a9a6
commit e9ebc5ecd0
+3
View File
@@ -49,16 +49,19 @@ bool CoreStartEmulation(std::string n64rom, std::string n64ddrom)
if (!CoreApplyRomPluginSettings())
{
CoreCloseRom();
return false;
}
if (!CoreArePluginsReady())
{
CoreCloseRom();
return false;
}
if (!CoreAttachPlugins())
{
CoreCloseRom();
return false;
}