diff --git a/lutris-sc-install.json b/lutris-sc-install.json index c8dc3bb..0b243d6 100644 --- a/lutris-sc-install.json +++ b/lutris-sc-install.json @@ -33,9 +33,6 @@ "files": [ { "client": "https://install.robertsspaceindustries.com/star-citizen/RSI-Setup-1.6.5.exe" - }, - { - "prelaunch": "https://raw.githubusercontent.com/starcitizen-lug/lug-helper/43d2653fc6b750e83353cfd5c3f68859410b39d6/lutris-sc-prelaunch.sh" } ], "game": { @@ -77,15 +74,6 @@ "command": "mkdir -p \"$GAMEDIR/drive_c/Program Files/Roberts Space Industries/StarCitizen/\"{LIVE,PTU}", "description": "Creating game path" } - }, - { - "chmodx": "prelaunch" - }, - { - "copy": { - "dst": "$GAMEDIR", - "src": "prelaunch" - } } ], "system": { @@ -95,7 +83,7 @@ "__GL_SHADER_DISK_CACHE_SIZE": 1073741824, "__GL_THREADED_OPTIMIZATIONS": 1, "SteamGameId:": "starcitizen", - "prelaunch_command": "$GAMEDIR/lutris-sc-prelaunch.sh" + "prelaunch_command": "/usr/bin/sh -c 'if [ -d \"$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat\" ]; then rm -rf \"$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat\"; fi'" }, "prefer_system_libs": false }, diff --git a/lutris-sc-prelaunch.sh b/lutris-sc-prelaunch.sh deleted file mode 100755 index e754e07..0000000 --- a/lutris-sc-prelaunch.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh -############################################ -## Lutris pre-launch script for Star Citizen -############################################ - -## EAC Workaround: Remove EAC cache -EACDIR="$WINEPREFIX/drive_c/users/$USER/AppData/Roaming/EasyAntiCheat" - -if [ -d "$EACDIR" ]; then - rm -rf "$EACDIR" -fi