Lua: added setrenderplanes(). For now, it works only for NES.

This commit is contained in:
taotao54321 2012-03-11 05:47:38 +00:00
parent 3dffd0b9b6
commit beb0b5a74d
1 changed files with 11 additions and 0 deletions

View File

@ -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
//----------------------------------------------------