Lua - implement functions: nes.getallowmorethaneightsprites() and nes.setallowmorethaneightsprites()

This commit is contained in:
adelikat 2012-09-28 17:32:01 +00:00
parent 8fce215f95
commit a68b80ad36
1 changed files with 16 additions and 0 deletions

View File

@ -548,6 +548,8 @@ namespace BizHawk.MultiClient
"setdispbackground",
"getdispsprites",
"setdispsprites",
"getallowmorethaneightsprites",
"setallowmorethaneightsprites",
"addgamegenie",
"removegamegenie",
};
@ -2541,6 +2543,20 @@ namespace BizHawk.MultiClient
Global.MainForm.SyncCoreInputComm();
}
public bool nes_getallowmorethaneightsprites()
{
return Global.Config.NESAllowMoreThanEightSprites;
}
public void nes_setallowmorethaneightsprites(bool allow)
{
Global.Config.NESAllowMoreThanEightSprites = allow;
if (Global.Emulator is NES)
{
(Global.Emulator as NES).CoreInputComm.NES_UnlimitedSprites = allow;
}
}
public void nes_addgamegenie(string code)
{
if (Global.Emulator is NES)