Cleaner Neko init
This commit is contained in:
@@ -85,9 +85,10 @@ class ApplicationMain {
|
|||||||
#if neko
|
#if neko
|
||||||
@:noCompletion public static function __init__ () {
|
@:noCompletion public static function __init__ () {
|
||||||
|
|
||||||
untyped $loader.path = $array (haxe.io.Path.directory (Sys.executablePath ()), $loader.path);
|
var loader = new neko.vm.Loader (untyped $loader);
|
||||||
untyped $loader.path = $array ("./", $loader.path);
|
loader.addPath (haxe.io.Path.directory (Sys.executablePath ()));
|
||||||
untyped $loader.path = $array ("@executable_path/", $loader.path);
|
loader.addPath ("./");
|
||||||
|
loader.addPath ("@executable_path/");
|
||||||
|
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|||||||
Reference in New Issue
Block a user