Initial commit

This commit is contained in:
crt0mega 2018-02-17 13:19:46 +01:00
commit 816935fd35
2 changed files with 37 additions and 0 deletions

28
games/witcher-2-import Executable file
View File

@ -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

9
readme.md Normal file
View File

@ -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.