example: change readbyte to memory.readbyte
This commit is contained in:
parent
dc61f89e20
commit
4e14d7a10f
|
@ -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"));
|
||||||
for (int i = 0; i < MemoryFunctions.Length; i++)
|
lua.NewTable("memory");
|
||||||
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue