3 # a helpful script that scrapes any active game saves from wine's storage
4 # area into a spooling saves folder for archiving.
6 source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh"
8 WINE_SOURCE_DIR="$HOME/wine_goods/My Games"
9 SPOOLING_OUTPUT_DIR="$HOME/spooling_saves"
11 if [ ! -d "$WINE_SOURCE_DIR" ]; then
12 WINE_SOURCE_DIR="c:/users/fred/My Documents/My Games"
14 if [ ! -d "$WINE_SOURCE_DIR" ]; then
15 echo "Failing to find the game save directories."
19 # copies the files for a particular game out to a spooling folder.
23 source_dir="$1"; shift
26 if [ -d "$source_dir" ]; then
28 cp -v -n "$source_dir"/* "$out_dir"/
33 # make the output folders if they don't exist.
34 for i in skyrim fallout_new_vegas fallout_3/Saves oblivion fallout_4/Saves ; do
35 if [ ! -d "$SPOOLING_OUTPUT_DIR/$i" ]; then
36 mkdir -p "$SPOOLING_OUTPUT_DIR/$i"
40 # now run through and copy our save files from the potentially weird locations
45 copyem "skyrim" "$WINE_SOURCE_DIR/Skyrim/Saves" "$SPOOLING_OUTPUT_DIR/skyrim"
47 copyem "fallout new vegas" "$WINE_SOURCE_DIR/FalloutNV/Saves" "$SPOOLING_OUTPUT_DIR/fallout_new_vegas"
49 copyem "fallout 3" "$WINE_SOURCE_DIR/Fallout3/Saves" "$SPOOLING_OUTPUT_DIR/fallout_3/Saves"
51 copyem "oblivion" "$WINE_SOURCE_DIR/Oblivion/Saves" "$SPOOLING_OUTPUT_DIR/oblivion/"
53 copyem "fallout 4" "$WINE_SOURCE_DIR/Fallout4/Saves" "$SPOOLING_OUTPUT_DIR/fallout_4/Saves"