diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 70b7e8ccd..da9cd11f5 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -471,8 +471,19 @@ class CommandLineTools switch (System.hostPlatform) { case WINDOWS: + // var is64 = neko.Lib.load("std", "sys_is64", 0)(); untyped $loader.path = $array(path + "Windows/", $loader.path); - untyped $loader.path = $array(path + "Windows64/", $loader.path); + if (CFFI.enabled) + { + try + { + neko.Lib.load("lime", "lime_application_create", 0); + } + catch(e:Dynamic) + { + untyped $loader.path = $array(path + "Windows64/", $loader.path); + } + } case MAC: // if (System.hostArchitecture == X64) { diff --git a/tools/SVGExport.hx b/tools/SVGExport.hx index dea3adffd..49b96a690 100644 --- a/tools/SVGExport.hx +++ b/tools/SVGExport.hx @@ -52,8 +52,19 @@ class SVGExport switch (System.hostPlatform) { case WINDOWS: + // var is64 = neko.Lib.load("std", "sys_is64", 0)(); untyped $loader.path = $array(path + "Windows/", $loader.path); - untyped $loader.path = $array(path + "Windows64/", $loader.path); + // if (CFFI.enabled) + // { + try + { + neko.Lib.load("lime", "lime_application_create", 0); + } + catch(e:Dynamic) + { + untyped $loader.path = $array(path + "Windows64/", $loader.path); + } + // } case MAC: untyped $loader.path = $array(path + "Mac/", $loader.path);