mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-01 12:06:38 +01:00
RMG-Core: remove CoreHasOpen() check in CoreGetCurrentRomSettings()
This commit is contained in:
1 parent
9e12a8f8b5
commit
a47cee59cd
1 file changed
-8
@@ -32,14 +32,6 @@ bool CoreGetCurrentRomSettings(CoreRomSettings& settings)
|
||||
m64p_error ret;
|
||||
m64p_rom_settings m64p_settings;
|
||||
|
||||
if (!CoreHasRomOpen())
|
||||
{
|
||||
error = "CoreGetCurrentRomSettings Failed: ";
|
||||
error += "cannot retrieve current rom settings when no ROM has been opened!";
|
||||
CoreSetError(error);
|
||||
return false;
|
||||
}
|
||||
|
||||
ret = m64p::Core.DoCommand(M64CMD_ROM_GET_SETTINGS, sizeof(m64p_rom_settings), &m64p_settings);
|
||||
if (ret != M64ERR_SUCCESS)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user