suppress updates while rebooting core, fixes #3424
This commit is contained in:
parent
b81728b2dc
commit
c8d4e606af
|
@ -197,9 +197,9 @@ namespace BizHawk.Client.Common
|
||||||
[LuaMethod("openrom", "opens the Open ROM dialog")]
|
[LuaMethod("openrom", "opens the Open ROM dialog")]
|
||||||
public void OpenRom([LuaArbitraryStringParam] string path)
|
public void OpenRom([LuaArbitraryStringParam] string path)
|
||||||
{
|
{
|
||||||
_luaLibsImpl.IsRebootingCore = true;
|
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = true;
|
||||||
APIs.EmuClient.OpenRom(FixString(path));
|
APIs.EmuClient.OpenRom(FixString(path));
|
||||||
_luaLibsImpl.IsRebootingCore = false;
|
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
[LuaMethodExample("client.opentasstudio( );")]
|
[LuaMethodExample("client.opentasstudio( );")]
|
||||||
|
@ -231,9 +231,9 @@ namespace BizHawk.Client.Common
|
||||||
[LuaMethod("reboot_core", "Reboots the currently loaded core")]
|
[LuaMethod("reboot_core", "Reboots the currently loaded core")]
|
||||||
public void RebootCore()
|
public void RebootCore()
|
||||||
{
|
{
|
||||||
_luaLibsImpl.IsRebootingCore = true;
|
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = true;
|
||||||
APIs.EmuClient.RebootCore();
|
APIs.EmuClient.RebootCore();
|
||||||
_luaLibsImpl.IsRebootingCore = false;
|
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
[LuaMethodExample("local incliscr = client.screenheight( );")]
|
[LuaMethodExample("local incliscr = client.screenheight( );")]
|
||||||
|
|
Loading…
Reference in New Issue