/
RiotClientServices
executable file
·93 lines (82 loc) · 2.68 KB
/
RiotClientServices
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env bash
################################################################################
export SW_USE_LAUNCH_PARAMETERS="--launch-product=league_of_legends --launch-patchline=live"
export SW_USE_WINEDLLOVERRIDES=""
export SW_USE_WINEARCH="win64"
export SW_USE_WINDOWS_VER="10"
export SW_USE_REGEDIT_PATCH=""
export SW_USE_DXVK_GE=0
export SW_USE_VKD3D_GE=0
export SW_USE_OPENGL=0
export SW_USE_STRANGLE_FPS_LIMIT=0
export SW_USE_MANGOHUD_DLSYM=0
export SW_USE_MANGOHUD=1
export SW_USE_GAMEMODE=1
export SW_USE_RUNTIME=1
export SW_USE_RESTORE_RESOLUTION=0
export SW_USE_VIRTUAL_DESKTOP=0
export SW_USE_FSYNC=1
export SW_USE_ESYNC=0
export SW_USE_OLD_GL_STRING=0
export SW_USE_NVAPI_DISABLE=0
export SW_USE_WINEDBG_DISABLE=1
export SW_USE_LARGE_ADDRESS_AWARE=1
export SW_USE_STAGING_WRITECOPY=0
export SW_USE_STAGING_SHARED_MEMORY=1
export SW_USE_DXVK_HUD=0
export SW_USE_DXVK_ASYNC=1
export SW_USE_ENABLE_VKBASALT=1
export SW_USE_FSR=1
export SW_USE_GSTREAMER=1
export SW_USE_DRI_PRIME=0
export SW_USE_WINE_MONO=1
export SW_USE_BATTLEYE=1
export SW_USE_EASYANTICHEAT=1
export SW_USE_D3D_PLUGINS=1
export SW_USE_VSYNC_DISABLE=0
export SW_USE_HIDE_NVIDIA_GPU=0
export SW_USE_DGVOODOO2=0
export SW_USE_DLSS=0
export SW_USE_AUTOSTART_TRAY=0
export SW_USE_DISABLE_UPDATE_PFX=0
export SW_USE_DXVK_VER="1.10.3"
export SW_USE_VKD3D_VER="2.8"
export SW_USE_LANG=ru
export SW_USE_THEME=blue
export SW_USE_VKBASALT_EFFECTS="cas:Tonemap:Colourfulness:"
export SW_USE_VKBASALT_CAS="0.4"
export SW_USE_HUD_POSITION="R"
export SW_USE_FPS_LIMIT="0.0"
export SW_USE_MANGOHUD_CONFIG=",core_load,gamemode,vkbasalt,resolution,wine,time,vram,ram,gpu_core_clock,gpu_temp,cpu_mhz,cpu_temp,"
export SW_USE_WINE="wine_custom/lutris-ge-lol"
export SW_USE_PFX="pfx_RiotClientServices"
################################################################################
check_lol () {
process=LeagueClientUx.exe
while [[ -z `pidof ${process}` ]] ; do
echo "PID ${process} not found"
sleep 1
done
uxpid=`pidof ${process}`
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [ ! -n $port ]; then
echo "Could not find port"
exit 1
fi
echo "Waiting for port ${port}"
kill -STOP ${uxpid}
timeout 200m /bin/bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1 ; do
sleep 1
done"
kill -CONT ${uxpid}
}
add_in_start () {
if [ "$(cat /proc/sys/abi/vsyscall32)" -ne 0 ]; then
pkexec /bin/bash -c 'sysctl -w abi.vsyscall32=0 && sysctl -p'
fi
check_lol &
}
#add_in_start
################################################################################