mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Don't use the runner lib yet - will finish in the morning
This commit is contained in:
@@ -116,7 +116,7 @@ static int nativeRunScript(Interpreter* interpreter, LiteralArray* arguments) {
|
|||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments) {
|
static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments) {
|
||||||
@@ -128,7 +128,7 @@ static int nativeGetScriptVar(Interpreter* interpreter, LiteralArray* arguments)
|
|||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments) {
|
static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments) {
|
||||||
@@ -140,7 +140,7 @@ static int nativeCallScriptFn(Interpreter* interpreter, LiteralArray* arguments)
|
|||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments) {
|
static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments) {
|
||||||
@@ -152,7 +152,7 @@ static int nativeResetScript(Interpreter* interpreter, LiteralArray* arguments)
|
|||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nativeFreeScript(Interpreter* interpreter, LiteralArray* arguments) {
|
static int nativeFreeScript(Interpreter* interpreter, LiteralArray* arguments) {
|
||||||
@@ -199,10 +199,10 @@ int hookRunner(Interpreter* interpreter, Literal identifier, Literal alias) {
|
|||||||
//build the natives list
|
//build the natives list
|
||||||
Natives natives[] = {
|
Natives natives[] = {
|
||||||
{"loadScript", nativeLoadScript},
|
{"loadScript", nativeLoadScript},
|
||||||
{"_runScript", nativeRunScript},
|
{"x_runScript", nativeRunScript},
|
||||||
{"_getScriptVar", nativeGetScriptVar},
|
{"x_getScriptVar", nativeGetScriptVar},
|
||||||
{"_callScriptFn", nativeCallScriptFn},
|
{"x_callScriptFn", nativeCallScriptFn},
|
||||||
{"_resetScript", nativeResetScript},
|
{"x_resetScript", nativeResetScript},
|
||||||
{"_freeScript", nativeFreeScript},
|
{"_freeScript", nativeFreeScript},
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user