From e7374447f3e571698bd99bf23dfc50e46be1161e Mon Sep 17 00:00:00 2001 From: warmCabin <35278529+warmCabin@users.noreply.github.com> Date: Tue, 10 Dec 2019 22:59:35 -0500 Subject: [PATCH] make onmemoryexecute address default to null --- BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs index 3ef04e8708..2520830dc1 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs @@ -183,9 +183,9 @@ namespace BizHawk.Client.Common return nlf.Guid.ToString(); } - [LuaMethodExample("local steveonm = event.onmemoryexecute(\r\n\tfunction()\r\n\t\tconsole.log( \"Fires after the given address is executed by the core\" );\r\n\tend\r\n\t, 0x200, \"Frame name\", \"System Bus\" );")] - [LuaMethod("onmemoryexecute", "Fires after the given address is executed by the core")] - public string OnMemoryExecute(LuaFunction luaf, uint address, string name = null, string domain = null) + [LuaMethodExample("local steveonm = event.onmemoryexecute(\r\n\tfunction()\r\n\t\tconsole.log( \"Fires after the given address is executed by the core. If no address is given, it will attach to every memory read\" );\r\n\tend\r\n\t, 0x200, \"Frame name\", \"System Bus\" );")] + [LuaMethod("onmemoryexecute", "Fires after the given address is executed by the core. If no address is given, it will attach to every memory read")] + public string OnMemoryExecute(LuaFunction luaf, uint address = null, string name = null, string domain = null) { try {