From c4b2aba6bd3f08bf839574d6bdbcc2c0e91d4169 Mon Sep 17 00:00:00 2001 From: Azreal Date: Sat, 10 Mar 2018 02:43:58 -0800 Subject: [PATCH] Fixed some bad cases! --- BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs | 2 +- BizHawk.Client.Common/lua/EmuLuaLibrary.MainMemory.cs | 2 +- BizHawk.Client.Common/lua/EmuLuaLibrary.Memory.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs index fa5a12b238..78653f6887 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Emu.cs @@ -69,7 +69,7 @@ namespace BizHawk.Client.Common return Emulator.Frame; } - [LuaMethodExample("disassemble", "local obemudis = emu.disassemble( uint pc );")] + [LuaMethodExample("disassemble", "local obemudis = emu.disassemble( 0x8000 );")] [LuaMethod("disassemble", "Returns the disassembly object (disasm string and length int) for the given PC address. Uses System Bus domain if no domain name provided")] public object Disassemble(uint pc, string name = "") { diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.MainMemory.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.MainMemory.cs index 2ab34e0bb2..66cd0fbc32 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.MainMemory.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.MainMemory.cs @@ -76,7 +76,7 @@ namespace BizHawk.Client.Common return base.ReadByteRange(addr, length); } - [LuaMethodExample("writebyterange", "mainmemory.writebyterange( nluatable memoryblock <> );")] + [LuaMethodExample("writebyterange", "")] [LuaMethod("writebyterange", "Writes the given values to the given addresses as unsigned bytes")] public void WriteByteRange(LuaTable memoryblock) { diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Memory.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Memory.cs index a962ec3c6b..3b23ee9c30 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Memory.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Memory.cs @@ -171,7 +171,7 @@ namespace BizHawk.Client.Common return base.ReadByteRange(addr, length, domain); } - [LuaMethodExample("writebyterange", "memory.writebyterange( nluatable memoryblock <>, mainmemory.getname( ) );")] + [LuaMethodExample("writebyterange", "")] [LuaMethod("writebyterange", "Writes the given values to the given addresses as unsigned bytes")] public new void WriteByteRange(LuaTable memoryblock, string domain = null) {