Fix 32/64-bit Neko NDLL path

This commit is contained in:
Joshua Granick
2019-09-10 10:50:26 -07:00
parent 277bbe6ae3
commit 641bfd50f4
2 changed files with 24 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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);