Skip to content

Instantly share code, notes, and snippets.

@danielkza
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkza/f3e9e96740e54885b8b7 to your computer and use it in GitHub Desktop.
Save danielkza/f3e9e96740e54885b8b7 to your computer and use it in GitHub Desktop.
#!/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