summarylogtreecommitdiffstats
path: root/setup_dxvk_aur.verb
blob: 000bff4d56940930797ff7c4b3ccc8be2797e5a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
w_metadata setup_dxvk_aur dlls \
    title="DXVK" \
    publisher="Philip Rebohle" \
    year="2018" \
    media="manual_download" \
    file1="d3d11.dll" \
    file2="d3d10.dll" \
    file3="d3d10_1.dll" \
    file4="d3d10core.dll" \
    installed_file1="C:\\windows\\system32\\d3d11.dll" \
    installed_file2="C:\\windows\\system32\\d3d10.dll" \
    installed_file3="C:\\windows\\system32\\d3d10_1.dll" \
    installed_file4="C:\\windows\\system32\\system32/d3d10core.dll" \
    homepage="https://github.com/doitsujin/dxvk"
    
DXVK_ROOT_DIR=`dirname "$(readlink -f $1)"`

load_setup_dxvk_aur()
{
    if [ ! -e "$DXVK_ROOT_DIR"  ]; then
        (>&2 echo "$DXVK_ROOT_DIR directory not found.")
        exit 1
    fi
    echo "Setting up DXVK from $DXVK_ROOT_DIR"

     for f in "$file1" "$file2" "$file3" "$file4"; do
        w_try ln -fs "$DXVK_ROOT_DIR/$f.so" "$W_SYSTEM64_DLLS/$f"
    done

    w_override_dlls native \
        d3d11 \
        d3d10 \
        d3d10_1 \
        d3d10core
}