Fix autoload

This commit is contained in:
James Roseborough
2007-09-22 07:14:23 +00:00
parent e154a158a9
commit e07382c90d
3 changed files with 7 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ import java.io.InputStream;
import lua.StackState;
import lua.VM;
import lua.addon.luacompat.LuaCompat;
import lua.addon.luajava.LuaJava;
import lua.debug.DebugStackState;
import lua.io.Closure;
import lua.io.LoadState;
import lua.io.Proto;
@@ -25,9 +27,10 @@ public class LuacRunner {
// add LuaCompat bindings
LuaCompat.install();
LuaJava.install();
// new lua state
StackState state = new StackState();
StackState state = new DebugStackState();
VM vm = state;
// load the file