summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Bird <Archez@users.noreply.github.com>2023-06-17 13:27:59 -0400
committerGitHub <noreply@github.com>2023-06-17 13:27:59 -0400
commitd4ff05f51d909bf0908d0f6e74bb7d21757d5a7f (patch)
tree82754d7ca2c26975af2a9ac4fda1c2d6eef57766
parent6fdfcd2a611a0ce79fbe01fcebfcad56423688e1 (diff)
update mac and linux launch scripts to make mods dir (#3013)
-rw-r--r--scripts/linux/appimage/soh.sh5
-rwxr-xr-xsoh/macosx/soh-macos.sh5
2 files changed, 10 insertions, 0 deletions
diff --git a/scripts/linux/appimage/soh.sh b/scripts/linux/appimage/soh.sh
index 7abf3c8b7..1afcbb9b7 100644
--- a/scripts/linux/appimage/soh.sh
+++ b/scripts/linux/appimage/soh.sh
@@ -13,6 +13,11 @@ if [ -z ${SHIP_BIN_DIR+x} ]; then
export SHIP_BIN_DIR="$HERE/usr/bin"
fi
+if [[ ! -e "$SHIP_HOME"/mods ]]; then
+ mkdir -p "$SHIP_HOME"/mods
+ touch "$SHIP_HOME"/mods/custom_otr_files_go_here.txt
+fi
+
while [[ (! -e "$SHIP_HOME"/oot.otr) || (! -e "$SHIP_HOME"/oot-mq.otr) ]]; do
for romfile in "$SHIP_HOME"/*.*64
do
diff --git a/soh/macosx/soh-macos.sh b/soh/macosx/soh-macos.sh
index 44bd67f5e..41b406295 100755
--- a/soh/macosx/soh-macos.sh
+++ b/soh/macosx/soh-macos.sh
@@ -9,6 +9,11 @@ export DYLD_FALLBACK_LIBRARY_PATH="$LIBPATH"
if [ ! -e "$SHIP_HOME" ]; then mkdir "$SHIP_HOME"; fi
+if [ ! -e "$SHIP_HOME"/mods ]; then
+ mkdir -p "$SHIP_HOME"/mods
+ touch "$SHIP_HOME"/mods/custom_otr_files_go_here.txt
+fi
+
# If either OTR doesn't exist kick off the OTR gen process
if [ ! -e "$SHIP_HOME"/oot.otr ] || [ ! -e "$SHIP_HOME"/oot-mq.otr ]; then