1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 10:24:12 +01:00
dxvk/utils/setup_dxvk.verb
Philip Rebohle 48a2b63247
[meta] Add custom winetricks verb to set up DXVK
Sets up both 32-bit and 64-bit DXVK for a wine prefix at the same time.
Will be shipped with release binaries. Based on #569.
2018-08-17 11:50:36 +02:00

38 lines
1.0 KiB
Plaintext

w_metadata setup_dxvk dlls \
title="DXVK" \
publisher="Philip Rebohle" \
year="2018" \
media="manual_download" \
file1="dxgi.dll" \
file2="d3d11.dll" \
file3="d3d10.dll" \
file4="d3d10_1.dll" \
file5="d3d10core.dll" \
installed_file1="$W_SYSTEM32_DLLS_WIN/dxgi.dll" \
installed_file2="$W_SYSTEM32_DLLS_WIN/d3d11.dll" \
installed_file3="$W_SYSTEM32_DLLS_WIN/d3d10.dll" \
installed_file4="$W_SYSTEM32_DLLS_WIN/d3d10_1.dll" \
installed_file5="$W_SYSTEM32_DLLS_WIN/d3d10core.dll" \
homepage="https://github.com/doitsujin/dxvk"
load_setup_dxvk()
{
for f in "$file1" "$file2" "$file3" "$file4" "$file5"; do
w_try cp "x32/$f" "$W_SYSTEM32_DLLS/$f"
done
if [ "$W_ARCH" = "win64" ]; then
dxvk64_dir="/usr/lib64/wine/dxvk"
for f in "$file1" "$file2" "$file3" "$file4" "$file5"; do
w_try cp "x64/$f" "$W_SYSTEM64_DLLS/$f"
done
fi
w_override_dlls native \
dxgi \
d3d11 \
d3d10 \
d3d10_1 \
d3d10core
}