Skip to content

Commit

Permalink
Update DB script for LOL
Browse files Browse the repository at this point in the history
  • Loading branch information
VHSgunzo committed Sep 28, 2023
1 parent ec98afa commit c87a076
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion db/LeagueClient.lwdb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,31 @@ WINE_THEME=Disabled
WPREFIX_NAME=lolpfx
USE_DEFPFX_BACKUP=1
MUST_HAVE_DLL=Disabled
WINE_VERSION=wine-lutris-ge-lol-8.7-1-x86_64
WINE_VERSION=wine-lutris-ge-lol-p8-12-x86_64
[ "$EXE_NAME" == "RiotClientServices" ] && \
EXE_ARG='--launch-product=league_of_legends --launch-patchline=live'

pfxsetupfl="$LW_DEF_WPFXS_DIR/$WPREFIX_NAME/.setup"
if [ ! -f "$pfxsetupfl" ]
then
source "$LW_DB_DIR/setup.lwdb"
pre_launch() {
touch "$pfxsetupfl"
(if [ "$EXE_NAME" == "LeagueClient" ]
then wait_kill_exe LeagueClient.exe unlim
else wait_kill_exe RiotClientServices.exe unlim
fi) &
case "$EXE_NAME" in
RiotClientServices) RIOTCLIENT="$LU_EXE" ;;
LeagueClient) RIOTCLIENT="$(realpath "$EXE_PATH/../Riot Client/RiotClientServices.exe")" ;;
*) RIOTCLIENT="$WINEPREFIX/drive_c/Riot Games/Riot Client/RiotClientServices.exe" ;;
esac
post_launch() {
if [ -f "$RIOTCLIENT" ]
then
NO_YAD=1 try_shutdown_wine
cleanrun "$LW_SOURCE" "$RIOTCLIENT"
fi
}
}
fi

0 comments on commit c87a076

Please sign in to comment.