Created
October 20, 2016 16:15
-
-
Save m0rb/543fbd7da8b4e203234a95d840df7bc2 to your computer and use it in GitHub Desktop.
Borderlands 2 Cutscene/Movie toggle script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Borderlands 2 is pretty heavy with the cutscenes in Sanctuary. | |
# Constantly. Playing. Character intros. | |
# Fortunately we can toggle the cutscenes on or off... | |
# --morb | |
TEMP=$(mktemp) | |
DIR="${HOME}/.steam/steam/SteamApps/common/Borderlands 2/steamassets/willowgame/config" | |
errexit() { | |
echo $@;rm $TEMP;exit 1 | |
} | |
dopatch() { | |
cd "$DIR" && patch $1 < $TEMP 2>&1 > /dev/null || errexit "patching failed." | |
rm $TEMP | |
} | |
[ ! -d "$DIR" ] && errexit "The Borderlands 2 directory doesn't exist. Point\ | |
\$DIR at the correct directory for your install." | |
cat > $TEMP << _EOF_ | |
--- defaultengine.ini | |
+++ defaultengine.ini.nomovies | |
@@ -1215,6 +1215,7 @@ | |
DeviceName=Generic Software | |
[FullScreenMovie] | |
+bForceNoMovies=TRUE | |
+StartupMovies=Aspyr | |
+StartupMovies=2K_logo | |
+StartupMovies=Gearbox_logo | |
_EOF_ | |
case $1 in | |
d|D) | |
dopatch -f && echo "Movies/Cutscenes disabled." | |
;; | |
e|E) | |
dopatch -fR && echo "Movies/Cutscenes enabled." | |
;; | |
*) | |
printf "usage:\n$0 d\t\t# disable cutscenes\n$0 e\t\t# enable them again\n" | |
errexit "Please pass a valid argument." | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment