Fixing script crash message

No more LIB_modname.hx in the logs
This commit is contained in:
NeeEoo
2024-02-11 20:46:08 +01:00
parent 7e1db2f4c6
commit e6ff26fd2e
3 changed files with 26 additions and 3 deletions
@@ -129,6 +129,8 @@ class Script extends FlxBasic implements IFlxDestroyable {
*/
public var path:String = null;
private var rawPath:String = null;
private var didLoad:Bool = false;
/**
@@ -177,6 +179,9 @@ class Script extends FlxBasic implements IFlxDestroyable {
public function new(path:String) {
super();
rawPath = path;
path = Paths.getFilenameFromLibFile(path);
fileName = Path.withoutDirectory(path);
this.path = path;
onCreate(path);