Initial commit
This commit is contained in:
commit
816935fd35
|
@ -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
|
||||
|
||||
|
||||
|
|
@ -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.
|
||||
|
Loading…
Reference in New Issue