Some better hscript error reporting when using source folder
This commit is contained in:
@@ -18,7 +18,7 @@ class GlobalScript {
|
||||
|
||||
Conductor.onBeatHit.add(beatHit);
|
||||
Conductor.onStepHit.add(stepHit);
|
||||
|
||||
|
||||
FlxG.signals.focusGained.add(function() {
|
||||
call("focusGained");
|
||||
});
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user