Last active
August 29, 2015 14:13
-
-
Save danielkza/f3e9e96740e54885b8b7 to your computer and use it in GitHub Desktop.
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 | |
[ "$PLAYONLINUX" = "" ] && exit 0 | |
source "$PLAYONLINUX/lib/sources" | |
export WINEPREFIX="/home/danielkza/.PlayOnLinux//wineprefix/lol2" | |
export WINEDEBUG="-all" | |
LOL_DIR="$HOME/Games/League of Legends" | |
BEFORE_WINE='env LD_PRELOAD=libpthread.so.0:libGL.so.1 __GL_THREADED_OPTIMIZATIONS=1' | |
if [ $# -eq 0 ]; then | |
cd "$LOL_DIR" | |
POL_Wine lol.launcher.exe "$@" | |
else | |
GAME_RELEASE_PATH="RADS/solutions/lol_game_client_sln/releases" | |
GAME_RELEASE="$(ls -1 "$LOL_DIR/$GAME_RELEASE_PATH/" | sort -r | head -n 1)" | |
LOL_GAME_DIR="$LOL_DIR/$GAME_RELEASE_PATH/$GAME_RELEASE/deploy" | |
cd "$LOL_GAME_DIR" | |
POL_Wine 'League of Legends.exe' "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment