Fix broken paths in dxvk_opengl_1()

The download destination of DXVK.reg should be inside the wine prefix of
the installation.

Signed-off-by: Hannes Weisbach <hannes.weisbach@gmail.com>
This commit is contained in:
Hannes Weisbach
2025-01-25 19:49:02 +01:00
parent 9784f3c138
commit 79a5e4cda8

View File

@@ -1098,9 +1098,9 @@ EOL
function dxvk_opengl_1 {
if [[ $GPU_DRIVER = "DXVK" ]]; then
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" sh "$SELECTED_DIRECTORY/bin/winetricks" -q dxvk
curl -L https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/setup/resource/video_driver/dxvk/DXVK.reg -o "$SELECTED_DIRECTORY/drive_c/users/$USER/Downloads/DXVK.reg"
curl -L https://raw.githubusercontent.com/cryinkfly/Autodesk-Fusion-360-for-Linux/main/files/setup/resource/video_driver/dxvk/DXVK.reg -o "$SELECTED_DIRECTORY/wineprefixes/default/drive_c/users/$USER/Downloads/DXVK.reg"
# Add the "return"-option. Here you can read more about it -> https://github.com/koalaman/shellcheck/issues/592
cd "$SELECTED_DIRECTORY/drive_c/users/$USER/Downloads" || return
cd "$SELECTED_DIRECTORY/wineprefixes/default/drive_c/users/$USER/Downloads" || return
WINEPREFIX="$SELECTED_DIRECTORY/wineprefixes/default" wine regedit.exe DXVK.reg
fi
}