Lua - implement functions: nes.getallowmorethaneightsprites() and nes.setallowmorethaneightsprites()
This commit is contained in:
parent
8fce215f95
commit
a68b80ad36
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue