LUA: documentation fix from previous commit

This commit is contained in:
alyosha-tas 2021-08-02 10:15:01 -04:00
parent d784e9c00c
commit 38442bd5fe
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ namespace BizHawk.Client.Common
[LuaMethod("readbyterange", "Reads the address range that starts from address, and is length long. Returns a zero-indexed table containing the read values (an array of bytes.)")]
public LuaTable ReadByteRange(long addr, int length, string domain = null) => _th.ListToTable(APIs.Memory.ReadByteRange(addr, length, domain));
[LuaMethodExample("local nlmemrea = memory.readbyterangetable( 0x100, 30, mainmemory.getname( ) );")]
[LuaMethodExample("local nlmemrea = memory.readbyterangetable( 0x100, 30, 0x100, mainmemory.getname( ) );")]
[LuaMethod("readbyterangetable", "Reads the address range that starts from address, and is length long. Returns the result into a table of key value pairs (where the index is the first key.)")]
public LuaTable ReadByteRangeTable(long addr, int length, long index, string domain = null) => _th.ListToTable(APIs.Memory.ReadByteRange(addr, length, domain), index);

View File

@ -47,7 +47,7 @@ namespace BizHawk.Client.Common
[LuaMethod("readbyterange", "Reads the address range that starts from address, and is length long. Returns a zero-indexed table containing the read values (an array of bytes.)")]
public LuaTable ReadByteRange(long addr, int length) => _th.ListToTable(APIs.Memory.ReadByteRange(addr, length, MainMemName));
[LuaMethodExample("local nlmairea = mainmemory.readbyterangetable( 0x100, 0x100, 64 );")]
[LuaMethodExample("local nlmairea = mainmemory.readbyterangetable( 0x100, 64, 0x100 );")]
[LuaMethod("readbyterangetable", "Reads the address range that starts from address, and is length long. Returns the result into a table of key value pairs (where the index is the first key.)")]
public LuaTable ReadByteRangeTable(long addr, int length, long index) => _th.ListToTable(APIs.Memory.ReadByteRange(addr, length), index);