Re-use hack from `client.reboot_core` for `openrom` (resolves #2940)
This commit is contained in:
parent
5f1d686475
commit
dc090b81fe
|
@ -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")]
|
||||
|
|
Loading…
Reference in New Issue