Fix midlet example including luajc-compiled scripts

This commit is contained in:
James Roseborough
2010-04-25 05:35:24 +00:00
parent 90ca65c7d9
commit de9c967ac5
3 changed files with 96 additions and 73 deletions

View File

@@ -22,7 +22,7 @@ public class SampleMIDlet extends MIDlet {
// create an environment to run in
LuaC.install();
LuaValue _G = JmePlatform.standardGlobals();
_G.get("dofile").call( LuaValue.valueOf(script) );
_G.get("require").call( LuaValue.valueOf(script) );
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {