diff --git a/db/LeagueClient.lwdb b/db/LeagueClient.lwdb index e28bc20..b0125ad 100644 --- a/db/LeagueClient.lwdb +++ b/db/LeagueClient.lwdb @@ -6,6 +6,30 @@ 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' + +if [ ! -f "$WINEPREFIX/.setup" ] + then + touch "$WINEPREFIX/.setup" + source "$LW_DB_DIR/setup.lwdb" + pre_launch() { + (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