Skip to content

Instantly share code, notes, and snippets.

@shuhaowu
Created July 17, 2016 19:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuhaowu/81f5baaf32cfb0c8c7dc85772f4d97ff to your computer and use it in GitHub Desktop.
Save shuhaowu/81f5baaf32cfb0c8c7dc85772f4d97ff to your computer and use it in GitHub Desktop.
#!/bin/bash
SAVE_BASE=~/Seafile/Public/gamesaves/RimWorld
switch_save() {
version=$1
cd ~/.config/unity3d/Ludeon\ Studios
rm RimWorld
ln -s ${SAVE_BASE}${version}$2 RimWorld
}
rimworld_13() {
switch_save 13 $1
cd ~/apps/RimWorld1135Linux/
./start_RimWorld.sh
}
rimworld_14() {
switch_save 14 $1
cd ~/apps/RimWorld1234Linux/
./start_RimWorld.sh
}
set -x
rimworld_$1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment