add memory.getcurrentmemorydomainsize

This commit is contained in:
zeromus 2013-05-06 04:59:59 +00:00
parent e4437a54a9
commit 2316721200
1 changed files with 6 additions and 0 deletions

View File

@ -397,6 +397,7 @@ namespace BizHawk.MultiClient
"usememorydomain", "usememorydomain",
"getmemorydomainlist", "getmemorydomainlist",
"getcurrentmemorydomain", "getcurrentmemorydomain",
"memory_getcurrentmemorydomainsize",
"read_s8", "read_s8",
"read_u8", "read_u8",
"read_s16_le", "read_s16_le",
@ -1333,6 +1334,11 @@ namespace BizHawk.MultiClient
return Global.Emulator.MemoryDomains[CurrentMemoryDomain].Name; return Global.Emulator.MemoryDomains[CurrentMemoryDomain].Name;
} }
public int memory_getcurrentmemorydomainsize()
{
return Global.Emulator.MemoryDomains[CurrentMemoryDomain].Size;
}
public uint memory_readbyte(object lua_addr) public uint memory_readbyte(object lua_addr)
{ {
int addr = LuaInt(lua_addr); int addr = LuaInt(lua_addr);