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 #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