Some better hscript error reporting when using source folder

This commit is contained in:
NeeEoo
2023-04-11 02:18:59 +02:00
parent 9ea939dfcd
commit 7f5ff7629f
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class GlobalScript {
Conductor.onBeatHit.add(beatHit);
Conductor.onStepHit.add(stepHit);
FlxG.signals.focusGained.add(function() {
call("focusGained");
});
+1 -1
View File
@@ -66,7 +66,7 @@ class HScript extends Script {
var expr:Expr = null;
try {
if (code != null && code.trim() != "")
expr = parser.parseString(code);
expr = parser.parseString(code, cl.join("/") + "." + hxExt);
} catch(e:Error) {
_errorHandler(e);
} catch(e) {