diff --git a/BizHawk.MultiClient/LuaImplementation.cs b/BizHawk.MultiClient/LuaImplementation.cs index 8777c3215a..999faff57e 100644 --- a/BizHawk.MultiClient/LuaImplementation.cs +++ b/BizHawk.MultiClient/LuaImplementation.cs @@ -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)