From ff02a84cdfaba957d297cde15d761a555f235d11 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Sat, 27 Jan 2024 13:11:26 +0000 Subject: [PATCH] Fix ndll loader path for arm64 Mac --- scripts/Tools.hx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/Tools.hx b/scripts/Tools.hx index 99fb191..cbcab92 100644 --- a/scripts/Tools.hx +++ b/scripts/Tools.hx @@ -99,8 +99,14 @@ class Tools // } case MAC: - // untyped $loader.path = $array(path + "Mac/", $loader.path); - untyped $loader.path = $array(path + "Mac64/", $loader.path); + if (System.hostArchitecture == X64) + { + untyped $loader.path = $array(path + "Mac64/", $loader.path); + } + else if (System.hostArchitecture == ARM64) + { + untyped $loader.path = $array(path + "MacArm64/", $loader.path); + } case LINUX: var arguments = Sys.args();