From c87a0766abb84accde630a5282fff25990a559b3 Mon Sep 17 00:00:00 2001 From: VHSgunzo Date: Thu, 28 Sep 2023 17:46:45 +0300 Subject: [PATCH] Update DB script for LOL --- db/LeagueClient.lwdb | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/db/LeagueClient.lwdb b/db/LeagueClient.lwdb index e28bc20..f49eea9 100644 --- a/db/LeagueClient.lwdb +++ b/db/LeagueClient.lwdb @@ -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