mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
RMG-Core: close ROM on failure in CoreStartEmulation()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user