Lua: added setrenderplanes(). For now, it works only for NES.
This commit is contained in:
parent
3dffd0b9b6
commit
beb0b5a74d
|
@ -170,6 +170,7 @@ namespace BizHawk.MultiClient
|
|||
//"registerbefore",
|
||||
//"registerafter",
|
||||
//"register",
|
||||
"setrenderplanes",
|
||||
};
|
||||
|
||||
public static string[] MemoryFunctions = new string[]
|
||||
|
@ -357,6 +358,16 @@ namespace BizHawk.MultiClient
|
|||
return Global.Emulator.SystemId;
|
||||
}
|
||||
|
||||
// TODO: variable arguments
|
||||
public void emu_setrenderplanes(object lua_p0, object lua_p1)
|
||||
{
|
||||
if (Global.Emulator is BizHawk.Emulation.Consoles.Nintendo.NES)
|
||||
{
|
||||
Global.CoreInputComm.NES_ShowOBJ = Global.Config.NESDispSprites = (bool)lua_p0;
|
||||
Global.CoreInputComm.NES_ShowBG = Global.Config.NESDispBackground = (bool)lua_p1;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
//Memory library
|
||||
//----------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue