diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 80b59cc2c..3fa320935 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -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