Skip to content

Commit 350634c

Browse files
committed
v0.75.6
1 parent d51af09 commit 350634c

6 files changed

Lines changed: 194 additions & 170 deletions

File tree

PKGBUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: VHSgunzo <vhsgunzo.github.io>
22
pkgname='lutris-wine-git'
3-
pkgver='0.75.5'
3+
pkgver='0.75.6'
44
pkgrel='1'
55
pkgdesc='Easy launch of your Windows applications and games with Wine/Proton'
66
arch=('x86_64')
@@ -26,7 +26,7 @@ depends=('aria2' 'qt5-tools' 'xterm' 'xorg-fonts-100dpi' 'xorg-fonts-75dpi'
2626
'libxrandr' 'lib32-libxrandr' 'xorg-xrandr' 'bc' 'xorg-xgamma' 'lsb-release'
2727
'iputils' 'curl' 'xdelta3' 'latencyflex-git' 'latencyflex-wine-git' 'xdg-utils'
2828
'desktop-file-utils' 'squashfs-tools' 'squashfuse' 'fuse2' 'reshade-shaders-git'
29-
'winetricks' 'innoextract' 'p7zip' 'gnu-netcat'
29+
'winetricks' 'innoextract' 'p7zip' 'openbsd-netcat' 'xdg-user-dirs'
3030
)
3131
makedepends=('git')
3232
optdepends=('lib32-vulkan-radeon' 'vulkan-radeon' 'xf86-video-amdgpu'

applications/openpfx.desktop

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env xdg-open
21
[Desktop Entry]
32
Categories=Lutris Wine
43
Exec=lutris-wine -openpfx %f

db/#LeagueClient.lwdb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ final_check() {
2121
fi
2222
}
2323

24+
25+
helper_pkexec() {
26+
if [ "$ENABLE_HOSTEXEC" == 1 ]
27+
then
28+
hostexec pkexec sh -c "$1"||return 1
29+
else
30+
pkexec sh -c "$1"||return 1
31+
fi
32+
}
33+
2434
syscall_check() {
2535
# If abi.vsyscall32=0 is already set, no need to do anything
2636
if [ "$(cat /proc/sys/abi/vsyscall32)" -eq 0 ]
@@ -31,7 +41,7 @@ syscall_check() {
3141
then
3242
if dialog --question --text="It looks like you already configured your system to work with League anticheat, and saved the setting to persist across reboots. However, for some reason the persistence part did not work.\n\nFor now, would you like to enable the setting again until the next reboot?"
3343
then
34-
pkexec sh -c 'sysctl -w abi.vsyscall32=0'
44+
helper_pkexec 'sysctl -w abi.vsyscall32=0'||return 1
3545
return 0
3646
else
3747
return 1
@@ -54,10 +64,10 @@ syscall_check() {
5464

5565
case "$RESULT" in
5666
"$once")
57-
pkexec sh -c 'sysctl -w abi.vsyscall32=0'
67+
helper_pkexec 'sysctl -w abi.vsyscall32=0'||return 1
5868
return 0 ;;
5969
"$persist")
60-
pkexec sh -c 'echo "abi.vsyscall32 = 0" >> /etc/sysctl.conf && sysctl -p'
70+
helper_pkexec "echo 'abi.vsyscall32 = 0' >> /etc/sysctl.conf && sysctl -p"||return 1
6171
return 0 ;;
6272
"$manual")
6373
dialog --info --no-wrap --text="To change the setting (a kernel parameter) until next boot, run:\n\nsudo sh -c 'sysctl -w abi.vsyscall32=0'\n\nTo persist the setting between reboots, run:\n\nsudo sh -c 'echo \"abi.vsyscall32 = 0\" >> /etc/sysctl.conf &amp;&amp; sysctl -p'"

db/GenshinImpact.lwdb

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
check_win_version '10'
33

44
check_deps() {
5-
if [ -z "$(which xdelta3 2>/dev/null)" ]
5+
if [ ! -n "$(which xdelta3 2>/dev/null)" ]
66
then
77
print_error yad "xdelta3 not found in your system! Install xdelta3 in your system! \nArch-based: sudo pacman -S xdelta3"
88
return 1
99
fi
1010
}
1111

1212
check_gi_patch() {
13-
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch330"
13+
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch340"
1414
if [ ! -d "$DIR" ]
1515
then
16-
if try_download "https://github.com/niizam/gi_patch/releases/download/v3.3/gi_patch330.tar.gz" "$WINEPREFIX/drive_c/Program Files"
16+
if try_download "https://github.com/niizam/gi_patch/releases/download/v3.4/gi_patch340.tar.gz" "$WINEPREFIX/drive_c/Program Files"
1717
then
1818
if unpack_tar_gz "$DIR.tar.gz" "$WINEPREFIX/drive_c/Program Files"
1919
then
@@ -29,17 +29,26 @@ check_gi_patch() {
2929
fi
3030
}
3131

32+
helper_pkexec() {
33+
if [ "$ENABLE_HOSTEXEC" == 1 ]
34+
then
35+
hostexec pkexec sh -c "$1"||return 1
36+
else
37+
pkexec sh -c "$1"||return 1
38+
fi
39+
}
40+
3241
launch_helper() {
3342
DATADIR=$(find -type d -name "*_Data")
3443
FILE="UnityPlayer.dll"
3544
CEXE1="$DATADIR/upload_crash.exe"
3645
CEXE2="$DATADIR/Plugins/crashreport.exe"
3746
sum=($(md5sum $FILE))
38-
if [ "$sum" == "34459dd7e3e040c9c9dd7d501fd42937" ]
47+
if [ "$sum" == "782fa080d71257396383dc90df6c286e" ]
3948
then
4049
print_info notify "Patch is already applied!"
4150
else
42-
if [ "${sum}" == "168f62f318099bfe95c1974e3184ac4c" ]
51+
if [ "${sum}" == "a8238a3be126723b7226b16447a6cb81" ]
4352
then
4453
reltype="os"
4554
print_info notify "Applying patch for: International (OS) version"
@@ -50,25 +59,25 @@ launch_helper() {
5059
if print_question "Hereby you are violating the game's Terms of Service! \nDo you accept the risk and possible consequences?"
5160
then
5261
print_info notify "Setting up blocked servers"
53-
if [ -z "$(grep "Genshin logging servers" /etc/hosts)" ]
62+
if [ ! -n "$(grep "Genshin logging servers" /etc/hosts)" ]
5463
then
5564
print_info yad "Blocking logging servers in /etc/hosts\n\n0.0.0.0 log-upload-os.hoyoverse.com\n0.0.0.0 overseauspider.yuanshen.com"
56-
pkexec sh -c 'echo -e "\n# Genshin logging servers (do not remove!)\n0.0.0.0 log-upload-os.hoyoverse.com\n0.0.0.0 overseauspider.yuanshen.com\n" >> /etc/hosts'
65+
helper_pkexec "echo -e '\n# Genshin logging servers ( do not remove! )\n0.0.0.0 log-upload-os.hoyoverse.com\n0.0.0.0 overseauspider.yuanshen.com\n' >> /etc/hosts"||return 1
5766
else
58-
if [ ! -z "$(grep -A1 'Genshin logging servers' /etc/hosts|grep -o 'log-upload-os.mihoyo.com' /etc/hosts)" ]
67+
if [ -n "$(grep -A1 'Genshin logging servers' /etc/hosts|grep -o 'log-upload-os.mihoyo.com' /etc/hosts)" ]
5968
then
6069
print_info yad "Need to change logging server in /etc/hosts! \nlog-upload-os.mihoyo.com\nto\nlog-upload-os.hoyoverse.com"
61-
pkexec sh -c "sed -i 's/log-upload-os.mihoyo.com/log-upload-os.hoyoverse.com/g' /etc/hosts"
70+
helper_pkexec "sed -i 's/log-upload-os.mihoyo.com/log-upload-os.hoyoverse.com/g' /etc/hosts"||return 1
6271
print_info notify "Logging server changed in /etc/hosts!"
6372
else
6473
print_info notify "Logging servers are already blocked. Skip."
6574
fi
6675
fi
67-
if [ -z "$(grep "Optional Unity proxy" /etc/hosts)" ]
76+
if [ ! -n "$(grep "Optional Unity proxy" /etc/hosts)" ]
6877
then
6978
if print_question "Blocking common Unity proxy/cdn servers in /etc/hosts\nIf issues arise in other games consider commenting a few lines to check what makes the difference.\n\n0.0.0.0 prd-lender.cdp.internal.unity3d.com\n0.0.0.0 thind-prd-knob.data.ie.unity3d.com\n0.0.0.0 thind-gke-usc.prd.data.corp.unity3d.com\n0.0.0.0 cdp.cloud.unity3d.com\n0.0.0.0 remote-config-proxy-prd.uca.cloud.unity3d.com\n\nBlock Unity proxy/cdn servers?"
7079
then
71-
pkexec sh -c 'echo -e "# Optional Unity proxy/cdn servers\n0.0.0.0 prd-lender.cdp.internal.unity3d.com\n0.0.0.0 thind-prd-knob.data.ie.unity3d.com\n0.0.0.0 thind-gke-usc.prd.data.corp.unity3d.com\n0.0.0.0 cdp.cloud.unity3d.com\n0.0.0.0 remote-config-proxy-prd.uca.cloud.unity3d.com\n" >> /etc/hosts'
80+
helper_pkexec "echo -e '# Optional Unity proxy/cdn servers\n0.0.0.0 prd-lender.cdp.internal.unity3d.com\n0.0.0.0 thind-prd-knob.data.ie.unity3d.com\n0.0.0.0 thind-gke-usc.prd.data.corp.unity3d.com\n0.0.0.0 cdp.cloud.unity3d.com\n0.0.0.0 remote-config-proxy-prd.uca.cloud.unity3d.com\n' >> /etc/hosts"||return 1
7281
fi
7382
else
7483
print_info notify "Unity proxy/cdn servers are already blocked. Skip."
@@ -97,7 +106,8 @@ launch_helper() {
97106
return 1
98107
fi
99108
fi
100-
[ ! -f "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot2.Sys" ] && try_cp "mhyprot2.Sys" "$WINEPREFIX/drive_c/users/$USER/Temp/"
109+
[[ ! -f "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.Sys" && -f "mhyprot3.Sys" ]] && \
110+
try_cp "mhyprot3.Sys" "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.sys"
101111
$WINE regedit mhyprot2_running.reg >/dev/null 2>&1
102112
}
103113

0 commit comments

Comments
 (0)