Refactor API's related to compiling and loading scripts and character encoding handling.
This commit is contained in:
@@ -13,7 +13,7 @@ public class SampleJseMain {
|
||||
Globals globals = JsePlatform.standardGlobals();
|
||||
|
||||
// Use the convenience function on the globals to load a chunk.
|
||||
LuaValue chunk = globals.loadFile(script);
|
||||
LuaValue chunk = globals.loadfile(script);
|
||||
|
||||
// Use any of the "call()" or "invoke()" functions directly on the chunk.
|
||||
chunk.call( LuaValue.valueOf(script) );
|
||||
|
||||
@@ -26,8 +26,8 @@ public class SampleMultiThreaded {
|
||||
|
||||
// Once a Globals is created, it can and should be reused
|
||||
// within the same thread.
|
||||
g.loadFile(script1).call();
|
||||
g.loadFile(script2).call();
|
||||
g.loadfile(script1).call();
|
||||
g.loadfile(script2).call();
|
||||
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
|
||||
Reference in New Issue
Block a user