#!/bin/bash

# Replace this variable with your Saved folder directory.
APPDATA_DIR="...AppData/Local/WonderfulWizard/Saved"

# Check if destination folder exists; if not, create it.
if [ ! -d "$APPDATA_DIR/HiddenSaveGames" ]; then
  echo "Destination folder /HiddenSaveGames does not exist. Creating it now..."
  mkdir -p "$APPDATA_DIR/HiddenSaveGames" || { echo "Failed to create /HiddenSaveGames"; exit 1; }
fi

# Check if source folder exists.
if [ ! -d "$APPDATA_DIR/SaveGames" ]; then
  echo "Source folder /SaveGames does not exist."
  exit 1
fi

# Move folder.
mv "$APPDATA_DIR/SaveGames" "$APPDATA_DIR/HiddenSaveGames" || { echo "Failed to move folder"; exit 1; }

echo "Successfully backed up save data."

