Skip to content

Commit c87a076

Browse files
committed
Update DB script for LOL
1 parent ec98afa commit c87a076

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

db/LeagueClient.lwdb

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,31 @@ WINE_THEME=Disabled
66
WPREFIX_NAME=lolpfx
77
USE_DEFPFX_BACKUP=1
88
MUST_HAVE_DLL=Disabled
9-
WINE_VERSION=wine-lutris-ge-lol-8.7-1-x86_64
9+
WINE_VERSION=wine-lutris-ge-lol-p8-12-x86_64
1010
[ "$EXE_NAME" == "RiotClientServices" ] && \
1111
EXE_ARG='--launch-product=league_of_legends --launch-patchline=live'
12+
13+
pfxsetupfl="$LW_DEF_WPFXS_DIR/$WPREFIX_NAME/.setup"
14+
if [ ! -f "$pfxsetupfl" ]
15+
then
16+
source "$LW_DB_DIR/setup.lwdb"
17+
pre_launch() {
18+
touch "$pfxsetupfl"
19+
(if [ "$EXE_NAME" == "LeagueClient" ]
20+
then wait_kill_exe LeagueClient.exe unlim
21+
else wait_kill_exe RiotClientServices.exe unlim
22+
fi) &
23+
case "$EXE_NAME" in
24+
RiotClientServices) RIOTCLIENT="$LU_EXE" ;;
25+
LeagueClient) RIOTCLIENT="$(realpath "$EXE_PATH/../Riot Client/RiotClientServices.exe")" ;;
26+
*) RIOTCLIENT="$WINEPREFIX/drive_c/Riot Games/Riot Client/RiotClientServices.exe" ;;
27+
esac
28+
post_launch() {
29+
if [ -f "$RIOTCLIENT" ]
30+
then
31+
NO_YAD=1 try_shutdown_wine
32+
cleanrun "$LW_SOURCE" "$RIOTCLIENT"
33+
fi
34+
}
35+
}
36+
fi

0 commit comments

Comments
 (0)