Deprecate emu.getluacore in favour of new func client.get_lua_engine
This commit is contained in:
parent
f57897515e
commit
a54aa0706d
|
@ -77,6 +77,9 @@ namespace BizHawk.Client.Common
|
||||||
[LuaMethod("frameskip", "Sets the frame skip value of the client UI (use 0 to disable)")]
|
[LuaMethod("frameskip", "Sets the frame skip value of the client UI (use 0 to disable)")]
|
||||||
public void FrameSkip(int numFrames) => APIs.EmuClient.FrameSkip(numFrames);
|
public void FrameSkip(int numFrames) => APIs.EmuClient.FrameSkip(numFrames);
|
||||||
|
|
||||||
|
[LuaMethod("get_lua_engine", "returns the name of the Lua engine currently in use")]
|
||||||
|
public string GetLuaEngine() => _luaLibsImpl.EngineName;
|
||||||
|
|
||||||
[LuaMethodExample("client.invisibleemulation( true );")]
|
[LuaMethodExample("client.invisibleemulation( true );")]
|
||||||
[LuaMethod("invisibleemulation", "Disables and enables emulator updates")]
|
[LuaMethod("invisibleemulation", "Disables and enables emulator updates")]
|
||||||
public void InvisibleEmulation(bool invisible) => APIs.EmuClient.InvisibleEmulation(invisible);
|
public void InvisibleEmulation(bool invisible) => APIs.EmuClient.InvisibleEmulation(invisible);
|
||||||
|
|
|
@ -101,7 +101,12 @@ namespace BizHawk.Client.Common
|
||||||
[LuaMethod("getboardname", "returns (if available) the board name of the loaded ROM")]
|
[LuaMethod("getboardname", "returns (if available) the board name of the loaded ROM")]
|
||||||
public string GetBoardName() => APIs.Emulation.GetBoardName();
|
public string GetBoardName() => APIs.Emulation.GetBoardName();
|
||||||
|
|
||||||
|
[LuaDeprecatedMethod]
|
||||||
[LuaMethod("getluacore", "returns the name of the Lua core currently in use")]
|
[LuaMethod("getluacore", "returns the name of the Lua core currently in use")]
|
||||||
public string GetLuaBackend() => _luaLibsImpl.EngineName;
|
public string GetLuaBackend()
|
||||||
|
{
|
||||||
|
Log("Deprecated function emu.getluacore() used, replace the call with client.get_lua_engine().");
|
||||||
|
return _luaLibsImpl.EngineName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue