commit 816935fd357469b096a1446a1a95106d92b37f97 Author: crt0mega Date: Sat Feb 17 13:19:46 2018 +0100 Initial commit diff --git a/games/witcher-2-import b/games/witcher-2-import new file mode 100755 index 0000000..8b3f5d9 --- /dev/null +++ b/games/witcher-2-import @@ -0,0 +1,28 @@ +#!/bin/bash + +tw1dir="$(xdg-user-dir DOCUMENTS)/The Witcher" +tw2dir="$HOME/.local/share/cdprojektred/witcher2/GameDocuments/The Witcher" + +if [ ! -d "$tw1dir" ] +then + zenity --error --text="Could not locate old savegames at $tw1dir." --no-wrap + exit +fi + +if [ -d "$tw2dir" ] +then + zenity --error --text="Symbolic link $tw2dir already exists." --no-wrap + exit +fi + +ln "$tw1dir" "$tw2dir" --symbolic + +if [ ! $? -eq 0 ] +then + zenity --error --text="Could not create symbolic link $tw2dir." --no-wrap +else + zenity --info --text="Symbolic link $tw2dir successfully created.\nYou can now import your Witcher 1 savegames." --no-wrap +fi + + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..b11085e --- /dev/null +++ b/readme.md @@ -0,0 +1,9 @@ +# script_collection + +## 0mega's collection of somehow linux gaming related scripts + +Trigger warning: Most of them need "zenity" to be installed. + +- witcher-2-import + - Creates a symlink to your The Witcher savegames, allowing the Linux version of The Witcher 2 to import these. +