Skip to content

Commit

Permalink
Update GI patch v3.5
Browse files Browse the repository at this point in the history
Add Steam DB and reg
Add LW_REGPATCH_DIR registry_patch
  • Loading branch information
VHSgunzo committed Mar 6, 2023
1 parent 76c5195 commit 06dfee0
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 12 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ install:
(IFS=$$'\n' ; for DB in $$($(LS) -1 db) ; do \
$(INSTALL) -Dm644 "db/$$DB" "$(DESTDIR)/usr/share/lutris-wine/db/$$DB" ; \
done)
(IFS=$$'\n' ; for REG in $$($(LS) -1 registry_patch) ; do \
$(INSTALL) -Dm644 "registry_patch/$$REG" "$(DESTDIR)/usr/share/lutris-wine/registry_patch/$$REG" ; \
done)

uninstall:
$(RM) -rfv "$(DESTDIR)/usr/bin/lutris-wine"
Expand Down
2 changes: 1 addition & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: VHSgunzo <vhsgunzo.github.io>
pkgname='lutris-wine-git'
pkgver='0.76.3'
pkgver='0.76.4'
pkgrel='1'
pkgdesc='Easy launch of your Windows applications and games with Wine/Proton'
arch=('x86_64')
Expand Down
3 changes: 0 additions & 3 deletions db/#steam.lwdb

This file was deleted.

15 changes: 10 additions & 5 deletions db/GenshinImpact.lwdb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ check_deps() {
}

check_gi_patch() {
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch340"
DIR="$WINEPREFIX/drive_c/Program Files/gi_patch350"
if [ ! -d "$DIR" ]
then
if try_download "https://github.com/niizam/gi_patch/releases/download/v3.4/gi_patch340.tar.gz" "$WINEPREFIX/drive_c/Program Files"
if try_download "https://github.com/VHSgunzo/gi_patch/releases/download/v3.5/gi_patch350.tar.gz" "$WINEPREFIX/drive_c/Program Files"
then
if unpack_tar_gz "$DIR.tar.gz" "$WINEPREFIX/drive_c/Program Files"
then
Expand Down Expand Up @@ -44,11 +44,11 @@ launch_helper() {
CEXE1="$DATADIR/upload_crash.exe"
CEXE2="$DATADIR/Plugins/crashreport.exe"
sum=($(md5sum $FILE))
if [ "$sum" == "782fa080d71257396383dc90df6c286e" ]
if [ "$sum" == "429749603ec62e24d5f61e6dda2487ce" ]
then
print_info notify "Patch is already applied!"
else
if [ "${sum}" == "a8238a3be126723b7226b16447a6cb81" ]
if [ "${sum}" == "a604cf90f46408063bed148855fc4443" ]
then
reltype="os"
print_info notify "Applying patch for: International (OS) version"
Expand Down Expand Up @@ -108,7 +108,12 @@ launch_helper() {
fi
[[ ! -f "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.Sys" && -f "mhyprot3.Sys" ]] && \
try_cp "mhyprot3.Sys" "$WINEPREFIX/drive_c/users/$USER/Temp/mhyprot3.sys"
$WINE regedit mhyprot2_running.reg >/dev/null 2>&1
if ! grep -om1 "ImagePath.*%TEMP%.*mhyprot3.sys" "$WINEPREFIX/system.reg" &>/dev/null
then
DISABLE_MANGOHUD=1 DISABLE_VKBASALT=1 "$WINE" \
regedit mhyprot2_running.reg &>/dev/null
try_shutdown_wine
fi
}

if check_deps
Expand Down
11 changes: 11 additions & 0 deletions db/steam.lwdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
check_win_version '10'
check_exe_args "-no-cef-sandbox -opengl"
if [[ -f "$LW_REGPATCH_DIR/steam.reg" && \
! -n "$(grep -A2 "\[Software.*Wine.*AppDefaults.*steam.exe\]" \
"$WINEPREFIX/user.reg"|grep -wo 'win7')" ]]
then
DISABLE_MANGOHUD=1 DISABLE_VKBASALT=1 "$WINE" \
regedit "$LW_REGPATCH_DIR/steam.reg" &>/dev/null
try_shutdown_wine
fi
7 changes: 6 additions & 1 deletion lutris-wine
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export LW_VERSION="0.76.3"
export LW_VERSION="0.76.4"
export LW_DEVELOPERS="VHSgunzo"

export RED='\033[1;91m'
Expand Down Expand Up @@ -49,6 +49,11 @@ if [ ! -n "$LW_GIF_DIR" ]
export LW_GIF_DIR="$LW_DIR/gif"||\
export LW_GIF_DIR="$LW_SYS_DIR/gif"
fi
if [ ! -n "$LW_REGPATCH_DIR" ]
then [ -d "$LW_DIR/registry_patch" ] && \
export LW_REGPATCH_DIR="$LW_DIR/registry_patch"||\
export LW_REGPATCH_DIR="$LW_SYS_DIR/registry_patch"
fi
[ ! -n "$LW_DEF_LOAD_GIF" ] && export LW_DEF_LOAD_GIF="$LW_GIF_DIR/default_loading.gif"
[ ! -n "$LW_DEF_ICO" ] && export LW_DEF_ICO="$LW_ICONS_DIR/default_icon.png"
[ ! -n "$LU_DIR" ] && export LU_DIR="$HOME/.local/share/lutris"
Expand Down
2 changes: 1 addition & 1 deletion lwrap/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: VHSgunzo <vhsgunzo.github.io>
pkgname='lwrap'
gitrepo='lutris-wine'
pkgver='0.76.3'
pkgver='0.76.4'
pkgrel='1'
pkgdesc='Lutris Wine wrapper for Runimage container'
arch=('x86_64')
Expand Down
2 changes: 1 addition & 1 deletion lwrap/PKGBUILD_git
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: VHSgunzo <vhsgunzo.github.io>
pkgname='lwrap-git'
gitrepo='lutris-wine'
pkgver='0.76.3'
pkgver='0.76.4'
pkgrel='1'
pkgdesc='Lutris Wine wrapper for Runimage container'
arch=('x86_64')
Expand Down
64 changes: 64 additions & 0 deletions registry_patch/steam.reg
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Wine\AppDefaults\steam.exe\DllOverrides]
"wineoss.drv"="N"

[HKEY_CURRENT_USER\Software\Wine\AppDefaults\steam.exe]
"Version"="win7"

[HKEY_CURRENT_USER\Software\Valve\Steam]
"DWriteEnable"="dword:00000000"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Lucida Console"="MS Sans Serif"

HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements
"Meiryo"="Source Han Sans TC"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo"="Source Han Sans SC"

[HKEY_CURRENT_USER\Software\Valve\Steam]
"GPUAccelWebViews"="dword:1"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo"="Microsoft YaHei"

[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"msxml3"="native,builtin"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Bold"="C:\Windows\fonts\SourceHanSansSC-Bold.otf"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC ExtraLight"="C:\Windows\fonts\SourceHanSansSC-ExtraLight.otf"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Heavy"="C:\Windows\fonts\SourceHanSansSC-Heavy.otf"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Light"="C:\Windows\fonts\SourceHanSansSC-Light.otf"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Medium"="C:\Windows\fonts\SourceHanSansSC-Medium.ot"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Normal"="C:\Windows\fonts\SourceHanSansSC-Normal.otf"

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Source Han Sans SC Regular"="C:\Windows\fonts\SourceHanSansSC-Regular.otf"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"SimSun"="Source Han Sans SC Regular"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"宋体"="Source Han Sans SC Regular"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"新宋体"="Source Han Sans SC Regular"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"NSimSun"="Source Han Sans SC Regular"

[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Microsoft YaHei UI"="Source Han Sans SC"

0 comments on commit 06dfee0

Please sign in to comment.