suppress updates while rebooting core, fixes #3424

This commit is contained in:
CasualPokePlayer 2022-10-21 02:19:22 -07:00
parent b81728b2dc
commit c8d4e606af
1 changed files with 4 additions and 4 deletions

View File

@ -197,9 +197,9 @@ namespace BizHawk.Client.Common
[LuaMethod("openrom", "opens the Open ROM dialog")]
public void OpenRom([LuaArbitraryStringParam] string path)
{
_luaLibsImpl.IsRebootingCore = true;
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = true;
APIs.EmuClient.OpenRom(FixString(path));
_luaLibsImpl.IsRebootingCore = false;
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = false;
}
[LuaMethodExample("client.opentasstudio( );")]
@ -231,9 +231,9 @@ namespace BizHawk.Client.Common
[LuaMethod("reboot_core", "Reboots the currently loaded core")]
public void RebootCore()
{
_luaLibsImpl.IsRebootingCore = true;
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = true;
APIs.EmuClient.RebootCore();
_luaLibsImpl.IsRebootingCore = false;
_luaLibsImpl.IsUpdateSupressed = _luaLibsImpl.IsRebootingCore = false;
}
[LuaMethodExample("local incliscr = client.screenheight( );")]