Re-use hack from `client.reboot_core` for `openrom` (resolves #2940)

This commit is contained in:
YoshiRulz 2021-09-30 19:26:29 +10:00
parent 5f1d686475
commit dc090b81fe
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 6 additions and 1 deletions

View File

@ -166,7 +166,12 @@ namespace BizHawk.Client.Common
[LuaMethodExample("client.openrom( \"C:\\\" );")]
[LuaMethod("openrom", "opens the Open ROM dialog")]
public void OpenRom(string path) => APIs.EmuClient.OpenRom(path);
public void OpenRom(string path)
{
_luaLibsImpl.IsRebootingCore = true;
APIs.EmuClient.OpenRom(path);
_luaLibsImpl.IsRebootingCore = false;
}
[LuaMethodExample("client.opentasstudio( );")]
[LuaMethod("opentasstudio", "opens the TAStudio dialog")]