Skip to content

Commit 06dfee0

Browse files
committed
Update GI patch v3.5
Add Steam DB and reg Add LW_REGPATCH_DIR registry_patch
1 parent 76c5195 commit 06dfee0

9 files changed

Lines changed: 97 additions & 12 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ install:
2727
(IFS=$$'\n' ; for DB in $$($(LS) -1 db) ; do \
2828
$(INSTALL) -Dm644 "db/$$DB" "$(DESTDIR)/usr/share/lutris-wine/db/$$DB" ; \
2929
done)
30+
(IFS=$$'\n' ; for REG in $$($(LS) -1 registry_patch) ; do \
31+
$(INSTALL) -Dm644 "registry_patch/$$REG" "$(DESTDIR)/usr/share/lutris-wine/registry_patch/$$REG" ; \
32+
done)
3033

3134
uninstall:
3235
$(RM) -rfv "$(DESTDIR)/usr/bin/lutris-wine"

PKGBUILD

Lines changed: 1 addition & 1 deletion
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.76.3'
3+
pkgver='0.76.4'
44
pkgrel='1'
55
pkgdesc='Easy launch of your Windows applications and games with Wine/Proton'
66
arch=('x86_64')

db/#steam.lwdb

Lines changed: 0 additions & 3 deletions
This file was deleted.

db/GenshinImpact.lwdb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ check_deps() {
1010
}
1111

1212
check_gi_patch() {
13-
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch340"
13+
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch350"
1414
if [ ! -d "$DIR" ]
1515
then
16-
if try_download "https://github.com/niizam/gi_patch/releases/download/v3.4/gi_patch340.tar.gz" "$WINEPREFIX/drive_c/Program Files"
16+
if try_download "https://github.com/VHSgunzo/gi_patch/releases/download/v3.5/gi_patch350.tar.gz" "$WINEPREFIX/drive_c/Program Files"
1717
then
1818
if unpack_tar_gz "$DIR.tar.gz" "$WINEPREFIX/drive_c/Program Files"
1919
then
@@ -44,11 +44,11 @@ launch_helper() {
4444
CEXE1="$DATADIR/upload_crash.exe"
4545
CEXE2="$DATADIR/Plugins/crashreport.exe"
4646
sum=($(md5sum $FILE))
47-
if [ "$sum" == "782fa080d71257396383dc90df6c286e" ]
47+
if [ "$sum" == "429749603ec62e24d5f61e6dda2487ce" ]
4848
then
4949
print_info notify "Patch is already applied!"
5050
else
51-
if [ "${sum}" == "a8238a3be126723b7226b16447a6cb81" ]
51+
if [ "${sum}" == "a604cf90f46408063bed148855fc4443" ]
5252
then
5353
reltype="os"
5454
print_info notify "Applying patch for: International (OS) version"
@@ -108,7 +108,12 @@ launch_helper() {
108108
fi
109109
[[ ! -f "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.Sys" && -f "mhyprot3.Sys" ]] && \
110110
try_cp "mhyprot3.Sys" "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.sys"
111-
$WINE regedit mhyprot2_running.reg >/dev/null 2>&1
111+
if ! grep -om1 "ImagePath.*%TEMP%.*mhyprot3.sys" "$WINEPREFIX/system.reg" &>/dev/null
112+
then
113+
DISABLE_MANGOHUD=1 DISABLE_VKBASALT=1 "$WINE" \
114+
regedit mhyprot2_running.reg &>/dev/null
115+
try_shutdown_wine
116+
fi
112117
}
113118

114119
if check_deps

db/steam.lwdb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
check_win_version '10'
3+
check_exe_args "-no-cef-sandbox -opengl"
4+
if [[ -f "$LW_REGPATCH_DIR/steam.reg" && \
5+
! -n "$(grep -A2 "\[Software.*Wine.*AppDefaults.*steam.exe\]" \
6+
"$WINEPREFIX/user.reg"|grep -wo 'win7')" ]]
7+
then
8+
DISABLE_MANGOHUD=1 DISABLE_VKBASALT=1 "$WINE" \
9+
regedit "$LW_REGPATCH_DIR/steam.reg" &>/dev/null
10+
try_shutdown_wine
11+
fi

lutris-wine

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
export LW_VERSION="0.76.3"
3+
export LW_VERSION="0.76.4"
44
export LW_DEVELOPERS="VHSgunzo"
55

66
export RED='\033[1;91m'
@@ -49,6 +49,11 @@ if [ ! -n "$LW_GIF_DIR" ]
4949
export LW_GIF_DIR="$LW_DIR/gif"||\
5050
export LW_GIF_DIR="$LW_SYS_DIR/gif"
5151
fi
52+
if [ ! -n "$LW_REGPATCH_DIR" ]
53+
then [ -d "$LW_DIR/registry_patch" ] && \
54+
export LW_REGPATCH_DIR="$LW_DIR/registry_patch"||\
55+
export LW_REGPATCH_DIR="$LW_SYS_DIR/registry_patch"
56+
fi
5257
[ ! -n "$LW_DEF_LOAD_GIF" ] && export LW_DEF_LOAD_GIF="$LW_GIF_DIR/default_loading.gif"
5358
[ ! -n "$LW_DEF_ICO" ] && export LW_DEF_ICO="$LW_ICONS_DIR/default_icon.png"
5459
[ ! -n "$LU_DIR" ] && export LU_DIR="$HOME/.local/share/lutris"

lwrap/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: VHSgunzo <vhsgunzo.github.io>
22
pkgname='lwrap'
33
gitrepo='lutris-wine'
4-
pkgver='0.76.3'
4+
pkgver='0.76.4'
55
pkgrel='1'
66
pkgdesc='Lutris Wine wrapper for Runimage container'
77
arch=('x86_64')

lwrap/PKGBUILD_git

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: VHSgunzo <vhsgunzo.github.io>
22
pkgname='lwrap-git'
33
gitrepo='lutris-wine'
4-
pkgver='0.76.3'
4+
pkgver='0.76.4'
55
pkgrel='1'
66
pkgdesc='Lutris Wine wrapper for Runimage container'
77
arch=('x86_64')

registry_patch/steam.reg

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
Windows Registry Editor Version 5.00
2+
3+
[HKEY_CURRENT_USER\Software\Wine\AppDefaults\steam.exe\DllOverrides]
4+
"wineoss.drv"="N"
5+
6+
[HKEY_CURRENT_USER\Software\Wine\AppDefaults\steam.exe]
7+
"Version"="win7"
8+
9+
[HKEY_CURRENT_USER\Software\Valve\Steam]
10+
"DWriteEnable"="dword:00000000"
11+
12+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
13+
"Lucida Console"="MS Sans Serif"
14+
15+
HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements
16+
"Meiryo"="Source Han Sans TC"
17+
18+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
19+
"Meiryo"="Source Han Sans SC"
20+
21+
[HKEY_CURRENT_USER\Software\Valve\Steam]
22+
"GPUAccelWebViews"="dword:1"
23+
24+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
25+
"Meiryo"="Microsoft YaHei"
26+
27+
[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
28+
"msxml3"="native,builtin"
29+
30+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
31+
"Source Han Sans SC Bold"="C:\Windows\fonts\SourceHanSansSC-Bold.otf"
32+
33+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
34+
"Source Han Sans SC ExtraLight"="C:\Windows\fonts\SourceHanSansSC-ExtraLight.otf"
35+
36+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
37+
"Source Han Sans SC Heavy"="C:\Windows\fonts\SourceHanSansSC-Heavy.otf"
38+
39+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
40+
"Source Han Sans SC Light"="C:\Windows\fonts\SourceHanSansSC-Light.otf"
41+
42+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
43+
"Source Han Sans SC Medium"="C:\Windows\fonts\SourceHanSansSC-Medium.ot"
44+
45+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
46+
"Source Han Sans SC Normal"="C:\Windows\fonts\SourceHanSansSC-Normal.otf"
47+
48+
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
49+
"Source Han Sans SC Regular"="C:\Windows\fonts\SourceHanSansSC-Regular.otf"
50+
51+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
52+
"SimSun"="Source Han Sans SC Regular"
53+
54+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
55+
"宋体"="Source Han Sans SC Regular"
56+
57+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
58+
"新宋体"="Source Han Sans SC Regular"
59+
60+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
61+
"NSimSun"="Source Han Sans SC Regular"
62+
63+
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
64+
"Microsoft YaHei UI"="Source Han Sans SC"

0 commit comments

Comments
 (0)