From: Chris Koeritz Date: Sat, 1 Oct 2016 07:21:17 +0000 (-0400) Subject: adapted to games being on windows instead of wine. X-Git-Tag: 2.140.90~411 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=578312ed1123e93f44fb9d6ef85a73d55e9e12b5;p=feisty_meow.git adapted to games being on windows instead of wine. --- diff --git a/customizing/fred/scripts/gamesaver.sh b/customizing/fred/scripts/gamesaver.sh index 157ff4c1..5e5cad2d 100644 --- a/customizing/fred/scripts/gamesaver.sh +++ b/customizing/fred/scripts/gamesaver.sh @@ -8,6 +8,14 @@ source $FEISTY_MEOW_SCRIPTS/core/functions.sh WINE_SOURCE_DIR="$HOME/wine_goods/My Games" SPOOLING_OUTPUT_DIR="$HOME/spooling_saves" +if [ ! -d "$WINE_SOURCE_DIR" ]; then + WINE_SOURCE_DIR="c:/users/fred/My Documents/My Games" +fi +if [ ! -d "$WINE_SOURCE_DIR" ]; then + echo "Failing to find the game save directories." + exit 1 +fi + # copies the files for a particular game out to a spooling folder. function copyem() { @@ -44,6 +52,6 @@ copyem "fallout 3" "$WINE_SOURCE_DIR/Fallout3/Saves/Player1" "$SPOOLING_OUTPUT_D copyem "oblivion" "$WINE_SOURCE_DIR/Oblivion/Saves" "$SPOOLING_OUTPUT_DIR/oblivion/" -copyem "fallout 4" "$WINE_SOURCE_DIR/Fallout4/Saves" "$SPOOLING_OUTPUT_DIR/fallout4" +copyem "fallout 4" "$WINE_SOURCE_DIR/Fallout4/Saves" "$SPOOLING_OUTPUT_DIR/fallout4/Saves"