mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Added loadScriptBytecode()
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
import runner;
|
||||
|
||||
//test basic loading and freeing of code
|
||||
//test basic loading and freeing of a script file
|
||||
{
|
||||
var s = loadScript("scripts:/runner_sample_code.toy");
|
||||
|
||||
s.freeScript();
|
||||
}
|
||||
|
||||
//test basic loading and freeing of a binary file
|
||||
{
|
||||
var s = loadScriptBytecode("scripts:/lib/runner/sample_bytecode.tb");
|
||||
|
||||
s.freeScript();
|
||||
}
|
||||
|
||||
//test running an external script
|
||||
{
|
||||
var s = loadScript("scripts:/runner_sample_code.toy");
|
||||
|
||||
Reference in New Issue
Block a user