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