Fixing script crash message
No more LIB_modname.hx in the logs
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user