Fix 32/64-bit Neko NDLL path
This commit is contained in:
@@ -471,8 +471,19 @@ class CommandLineTools
|
|||||||
switch (System.hostPlatform)
|
switch (System.hostPlatform)
|
||||||
{
|
{
|
||||||
case WINDOWS:
|
case WINDOWS:
|
||||||
|
// var is64 = neko.Lib.load("std", "sys_is64", 0)();
|
||||||
untyped $loader.path = $array(path + "Windows/", $loader.path);
|
untyped $loader.path = $array(path + "Windows/", $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);
|
untyped $loader.path = $array(path + "Windows64/", $loader.path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
case MAC:
|
case MAC:
|
||||||
// if (System.hostArchitecture == X64) {
|
// if (System.hostArchitecture == X64) {
|
||||||
|
|||||||
@@ -52,8 +52,19 @@ class SVGExport
|
|||||||
switch (System.hostPlatform)
|
switch (System.hostPlatform)
|
||||||
{
|
{
|
||||||
case WINDOWS:
|
case WINDOWS:
|
||||||
|
// var is64 = neko.Lib.load("std", "sys_is64", 0)();
|
||||||
untyped $loader.path = $array(path + "Windows/", $loader.path);
|
untyped $loader.path = $array(path + "Windows/", $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);
|
untyped $loader.path = $array(path + "Windows64/", $loader.path);
|
||||||
|
}
|
||||||
|
// }
|
||||||
|
|
||||||
case MAC:
|
case MAC:
|
||||||
untyped $loader.path = $array(path + "Mac/", $loader.path);
|
untyped $loader.path = $array(path + "Mac/", $loader.path);
|
||||||
|
|||||||
Reference in New Issue
Block a user