1
0
Fork 0
dotfiles/utils/patch-eldenring.sh
2024-08-27 18:36:07 +02:00

16 lines
563 B
Bash
Executable file

#!/usr/bin/env bash
# https://old.reddit.com/r/linux_gaming/comments/td14yg/elden_ring_wont_launch_protonlinux/
# Move $ELDEN_RING_DIR/elden_ring.exe to $ELDEN_RING_DIR/start_protected_game.exe
ELDEN_RING_DIR="$HOME/.steam/steam/steamapps/common/ELDEN RING/Game"
set -euo pipefail
if [ ! -f "$ELDEN_RING_DIR/eldenring.exe" ]; then
echo "Already patched at $ELDEN_RING_DIR"
exit 0
fi
mv "$ELDEN_RING_DIR/start_protected_game.exe" "$ELDEN_RING_DIR/start_protected_game.exe.bak"
mv "$ELDEN_RING_DIR/eldenring.exe" "$ELDEN_RING_DIR/start_protected_game.exe"