From d4ff05f51d909bf0908d0f6e74bb7d21757d5a7f Mon Sep 17 00:00:00 2001 From: Adam Bird Date: Sat, 17 Jun 2023 13:27:59 -0400 Subject: [PATCH] update mac and linux launch scripts to make mods dir (#3013) --- scripts/linux/appimage/soh.sh | 5 +++++ soh/macosx/soh-macos.sh | 5 +++++ 2 files changed, 10 insertions(+) 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