[macOS] Force native architecture to launch (#1554)

This commit is contained in:
Jeffrey Crowell 2022-09-22 07:30:47 -04:00 committed by GitHub
parent 00fb12134a
commit fde05e65c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -65,5 +65,11 @@ while [ ! -e "$DATA_SHARE/oot.otr" ]; do
break
done
"$RESPATH"/soh-macos
arch_name="$(uname -m)"
launch_arch="arm64"
if [ "${arch_name}" = "x86_64" ] && [ "$(sysctl -in sysctl.proc_translated)" = "0" ]; then
launch_arch="x86_64"
fi
arch -${launch_arch} "$RESPATH"/soh-macos
exit