example: change readbyte to memory.readbyte

This commit is contained in:
zeromus 2011-02-20 23:41:51 +00:00
parent dc61f89e20
commit 4e14d7a10f
1 changed files with 5 additions and 3 deletions

View File

@ -19,10 +19,12 @@ namespace BizHawk.MultiClient
{ {
Caller = passed.get(); Caller = passed.get();
lua.RegisterFunction("print",this, this.GetType().GetMethod("print")); lua.RegisterFunction("print",this, this.GetType().GetMethod("print"));
lua.NewTable("memory");
for (int i = 0; i < MemoryFunctions.Length; i++) for (int i = 0; i < MemoryFunctions.Length; i++)
{ {
lua.RegisterFunction(MemoryFunctions[i], this, this.GetType().GetMethod(MemoryFunctions[i])); lua.RegisterFunction("memory." + MemoryFunctions[i], this, this.GetType().GetMethod(MemoryFunctions[i]));
} }
} }
public void DoLuaFile(string File) public void DoLuaFile(string File)
{ {