Fix Neko initialization loop

This commit is contained in:
Joshua Granick
2017-04-26 14:30:45 -07:00
parent 4b0f765daa
commit f2a4b425c1
4 changed files with 20 additions and 4 deletions

View File

@@ -87,7 +87,9 @@ package;
preloader.load ();
#if !munit
start (app);
#end
}
@@ -113,9 +115,7 @@ package;
@:noCompletion @:dox(hide) public static function __init__ () {
#if lime_cffi
var init = lime.system.CFFI;
#end
var init = lime.app.Application;
#if neko
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
@@ -142,6 +142,7 @@ package;
loader.addPath (haxe.io.Path.directory (#if (haxe_ver >= 3.3) sys_program_path #else Sys.executablePath () #end));
loader.addPath ("./");
loader.addPath ("@executable_path/");
#end
}