Added script for Divinity: Original Sin 2 workaround with proton

This commit is contained in:
crt0mega 2019-04-06 13:19:08 +02:00
parent 30a2d8bfd1
commit 41f36a96f4
1 changed files with 38 additions and 0 deletions

38
games/divos2-workaround Executable file
View File

@ -0,0 +1,38 @@
#!/bin/bash
# Divinity: Original Sin Workaround for Proton
# Collect par
div2path="$(find ~ -name "SteamApps" -type d 2>/dev/null)/common/Divinity Original Sin 2"
if ! [ -d "$div2path" ]; then
zenity --error --text="$div2path not found" --title="Path not found" --width=384
exit
fi
if [ -d "$div2path/bin.bak" ]; then
if zenity --question --text="Workaround has already been applied. Undo?" --title="Already done" --width=384; then
rm "$div2path/bin/SupportTool.exe"
mv "$div2path/bin/SupportTool.bak" "$div2path/bin/SupportTool.exe"
rm "$div2path/bin"
mv "$div2path/bin.bak" "$div2path/bin"
else
exit
fi
else
if zenity --question --text="Game located at $div2path. Apply workaround?" --title="Last chance" --width=384 ; then
mv "$div2path/bin" "$div2path/bin.bak"
ln -s "$div2path/DefEd/bin" "$div2path/bin"
mv "$div2path/bin/SupportTool.exe" "$div2path/bin/SupportTool.bak "
ln -s "$div2path/bin/EoCApp.exe" "$div2path/bin/SupportTool.exe"
else
exit
fi
fi