mirror of
https://github.com/relativemodder/aegnux.git
synced 2025-12-10 13:39:43 +05:00
gdiplus... im in danger...
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,3 +13,4 @@ bin/*
|
|||||||
assets/wine
|
assets/wine
|
||||||
assets/vcr.zip
|
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 msxml3.dll
|
||||||
rm msxml3r.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 --------------------------------------------
|
||||||
echo Done!
|
echo Done!
|
||||||
@@ -11,6 +11,7 @@ STYLES_PATH = BASE_DIR + '/styles'
|
|||||||
WINE_RUNNER_DIR = BASE_DIR + '/assets/wine'
|
WINE_RUNNER_DIR = BASE_DIR + '/assets/wine'
|
||||||
WINETRICKS_BIN = BASE_DIR + '/bin/winetricks'
|
WINETRICKS_BIN = BASE_DIR + '/bin/winetricks'
|
||||||
CABEXTRACT_BIN = BASE_DIR + '/bin/cabextract'
|
CABEXTRACT_BIN = BASE_DIR + '/bin/cabextract'
|
||||||
|
GDIPLUS_DLL = BASE_DIR + '/assets/gdiplus.dll'
|
||||||
|
|
||||||
VCR_ZIP = BASE_DIR + '/assets/vcr.zip'
|
VCR_ZIP = BASE_DIR + '/assets/vcr.zip'
|
||||||
MSXML_ZIP = BASE_DIR + '/assets/msxml3.zip'
|
MSXML_ZIP = BASE_DIR + '/assets/msxml3.zip'
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from src.config import (
|
|||||||
AE_DOWNLOAD_URL, AE_FILENAME,
|
AE_DOWNLOAD_URL, AE_FILENAME,
|
||||||
WINE_RUNNER_DIR, WINETRICKS_BIN,
|
WINE_RUNNER_DIR, WINETRICKS_BIN,
|
||||||
CABEXTRACT_BIN, WINE_STYLE_REG,
|
CABEXTRACT_BIN, WINE_STYLE_REG,
|
||||||
VCR_ZIP, MSXML_ZIP
|
VCR_ZIP, MSXML_ZIP, GDIPLUS_DLL
|
||||||
)
|
)
|
||||||
from src.processthread import ProcessThread
|
from src.processthread import ProcessThread
|
||||||
from src.utils import (
|
from src.utils import (
|
||||||
@@ -107,7 +107,7 @@ class InstallationThread(ProcessThread):
|
|||||||
|
|
||||||
self.progress_signal.emit(60)
|
self.progress_signal.emit(60)
|
||||||
|
|
||||||
tweaks = ['dxvk', 'corefonts', 'gdiplus', 'fontsmooth=rgb']
|
tweaks = ['dxvk', 'corefonts', 'fontsmooth=rgb']
|
||||||
for tweak in tweaks:
|
for tweak in tweaks:
|
||||||
self.log_signal.emit(f'[DEBUG] Installing {tweak} with winetricks')
|
self.log_signal.emit(f'[DEBUG] Installing {tweak} with winetricks')
|
||||||
self.run_command(['winetricks', '-q', tweak], in_prefix=True)
|
self.run_command(['winetricks', '-q', tweak], in_prefix=True)
|
||||||
@@ -142,6 +142,16 @@ class InstallationThread(ProcessThread):
|
|||||||
in_prefix=True
|
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():
|
if is_nvidia_present():
|
||||||
self.log_signal.emit("[INFO] Starting NVIDIA libs installation...")
|
self.log_signal.emit("[INFO] Starting NVIDIA libs installation...")
|
||||||
self.install_nvidia_libs()
|
self.install_nvidia_libs()
|
||||||
|
|||||||
Reference in New Issue
Block a user