CommitteeOfZero / polyversal-coz-linux-patcher

whose OS runs whose games
MIT License
33 stars 5 forks source link

Fix for new Protontricks subshell behavior #29

Closed Macitron closed 2 months ago

Macitron commented 2 months ago

Protontricks used to set the CWD of its subshells (-c commands) to the target game's Steam directory, but in the latest beta versions now it sets it to the directory in which Protontricks was called.

This script depended in a few places on that old implicit behavior, such as reading the game's directory with pwd and assuming the CWD when looking for nguninstall.exe. These changes use the (previously undocumented) $STEAM_APP_PATH environment variable that Protontricks sets in its subshells to explicitly set the directory we want.