gdiplus... im in danger...

This commit is contained in:
Andrew
2025-11-01 22:46:22 +03:00
parent 00a0df962d
commit bb096c5197
4 changed files with 21 additions and 3 deletions

1
.gitignore vendored
View File

@@ -13,3 +13,4 @@ bin/*
assets/wine
assets/vcr.zip
assets/msxml3.zip
assets/gdiplus.dll

View File

@@ -46,5 +46,11 @@ zip ./assets/msxml3.zip msxml3.dll msxml3r.dll
rm msxml3.dll
rm msxml3r.dll
# Download gdiplus.dll
echo Downloading gdiplus.dll...
curl -LO https://github.com/relativemodder/aegnux/releases/download/vcrbin/gdiplus.dll
mv gdiplus.dll ./assets/
echo --------------------------------------------
echo Done!

View File

@@ -11,6 +11,7 @@ STYLES_PATH = BASE_DIR + '/styles'
WINE_RUNNER_DIR = BASE_DIR + '/assets/wine'
WINETRICKS_BIN = BASE_DIR + '/bin/winetricks'
CABEXTRACT_BIN = BASE_DIR + '/bin/cabextract'
GDIPLUS_DLL = BASE_DIR + '/assets/gdiplus.dll'
VCR_ZIP = BASE_DIR + '/assets/vcr.zip'
MSXML_ZIP = BASE_DIR + '/assets/msxml3.zip'

View File

@@ -5,7 +5,7 @@ from src.config import (
AE_DOWNLOAD_URL, AE_FILENAME,
WINE_RUNNER_DIR, WINETRICKS_BIN,
CABEXTRACT_BIN, WINE_STYLE_REG,
VCR_ZIP, MSXML_ZIP
VCR_ZIP, MSXML_ZIP, GDIPLUS_DLL
)
from src.processthread import ProcessThread
from src.utils import (
@@ -107,7 +107,7 @@ class InstallationThread(ProcessThread):
self.progress_signal.emit(60)
tweaks = ['dxvk', 'corefonts', 'gdiplus', 'fontsmooth=rgb']
tweaks = ['dxvk', 'corefonts', 'fontsmooth=rgb']
for tweak in tweaks:
self.log_signal.emit(f'[DEBUG] Installing {tweak} with winetricks')
self.run_command(['winetricks', '-q', tweak], in_prefix=True)
@@ -142,6 +142,16 @@ class InstallationThread(ProcessThread):
in_prefix=True
)
self.log_signal.emit(f'[DEBUG] Overriding gdiplus DLL...')
shutil.copy(GDIPLUS_DLL, system32_dir.joinpath('gdiplus.dll'))
self.run_command(
['wine', 'reg', 'add',
'HKCU\\Software\\Wine\\DllOverrides', '/v',
'gdiplus', '/d', 'native,builtin', '/f'],
in_prefix=True
)
if is_nvidia_present():
self.log_signal.emit("[INFO] Starting NVIDIA libs installation...")
self.install_nvidia_libs()