mirror of
https://github.com/relativemodder/aegnux.git
synced 2025-12-10 05:29:38 +05:00
gdiplus... im in danger...
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -12,4 +12,5 @@ bin/*
|
||||
|
||||
assets/wine
|
||||
assets/vcr.zip
|
||||
assets/msxml3.zip
|
||||
assets/msxml3.zip
|
||||
assets/gdiplus.dll
|
||||
@@ -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!
|
||||
@@ -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'
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user