2022-08-18 13:40:41 -04:00
|
|
|
#!/bin/bash
|
2022-08-05 01:59:19 -04:00
|
|
|
|
2022-08-18 13:40:41 -04:00
|
|
|
SNAME="$(dirname $0)"
|
2023-05-05 02:34:07 -04:00
|
|
|
export SHIP_HOME="$HOME/Library/Application Support/com.shipofharkinian.soh"
|
2022-08-18 13:40:41 -04:00
|
|
|
export SNAME
|
|
|
|
export RESPATH="${SNAME%/MacOS*}/Resources"
|
|
|
|
export LIBPATH="${SNAME%/MacOS*}/Frameworks"
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH="$LIBPATH"
|
2022-08-05 01:59:19 -04:00
|
|
|
|
2023-05-05 02:34:07 -04:00
|
|
|
if [ ! -e "$SHIP_HOME" ]; then mkdir "$SHIP_HOME"; fi
|
2022-10-16 23:07:35 -04:00
|
|
|
|
2023-06-17 13:27:59 -04:00
|
|
|
if [ ! -e "$SHIP_HOME"/mods ]; then
|
|
|
|
mkdir -p "$SHIP_HOME"/mods
|
|
|
|
touch "$SHIP_HOME"/mods/custom_otr_files_go_here.txt
|
|
|
|
fi
|
|
|
|
|
2022-09-22 07:30:47 -04:00
|
|
|
arch_name="$(uname -m)"
|
|
|
|
launch_arch="arm64"
|
2022-09-26 16:12:45 -04:00
|
|
|
if [ "${arch_name}" = "x86_64" ] && [ "$(sysctl -in sysctl.proc_translated)" != "1" ]; then
|
2022-09-22 07:30:47 -04:00
|
|
|
launch_arch="x86_64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
arch -${launch_arch} "$RESPATH"/soh-macos
|
2022-08-18 13:40:41 -04:00
|
|
|
exit
|