Cleaner Neko init

This commit is contained in:
Joshua Granick
2014-06-25 08:44:54 -07:00
parent da4a3af9ed
commit cd879b6287

View File

@@ -85,9 +85,10 @@ class ApplicationMain {
#if neko
@:noCompletion public static function __init__ () {
untyped $loader.path = $array (haxe.io.Path.directory (Sys.executablePath ()), $loader.path);
untyped $loader.path = $array ("./", $loader.path);
untyped $loader.path = $array ("@executable_path/", $loader.path);
var loader = new neko.vm.Loader (untyped $loader);
loader.addPath (haxe.io.Path.directory (Sys.executablePath ()));
loader.addPath ("./");
loader.addPath ("@executable_path/");
}
#end