mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 01:54:16 +01:00
[d3d11] dlls_setup.sh -> setup_dxvk.sh
Also, the install script no longer relies on the prefix being set by the Meson configuration.
This commit is contained in:
parent
ad81d0bfa5
commit
26ef59dd6f
@ -3,7 +3,7 @@ conf.set('dlldir', get_option('prefix')+'/'+get_option('bindir'))
|
||||
conf.set('arch', target_machine.cpu_family())
|
||||
configure_file(
|
||||
configuration : conf,
|
||||
input : 'dlls_setup.sh.in',
|
||||
output : 'dlls_setup.sh',
|
||||
input : 'setup_dxvk.sh.in',
|
||||
output : 'setup_dxvk.sh',
|
||||
install_dir : get_option('bindir')
|
||||
)
|
||||
|
@ -1,9 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
dlls_dir='@dlldir@'
|
||||
build_arch='@arch@'
|
||||
export WINEDEBUG=-all
|
||||
|
||||
dlls_dir=`dirname $(readlink -f $0)`
|
||||
build_arch='@arch@'
|
||||
|
||||
if [ ! -f "$dlls_dir/d3d11.dll" ] || [ ! -f "$dlls_dir/dxgi.dll" ]; then
|
||||
echo "d3d11.dll or dxgi.dll not found in $dlls_dir"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $build_arch == "x86_64" ]; then
|
||||
wine=wine64
|
||||
else
|
||||
@ -54,11 +60,13 @@ if [ "$1" == "reset" ]; then
|
||||
removeOverride d3d11
|
||||
echo -n '[2/2] '
|
||||
removeOverride dxgi
|
||||
exit
|
||||
fi
|
||||
|
||||
echo -n '[1/2] '
|
||||
createOverride d3d11
|
||||
echo -n '[2/2] '
|
||||
createOverride dxgi
|
||||
exit
|
||||
elif [ -z "$1" ]; then
|
||||
echo -n '[1/2] '
|
||||
createOverride d3d11
|
||||
echo -n '[2/2] '
|
||||
createOverride dxgi
|
||||
else
|
||||
echo "Unrecognized option: $1"
|
||||
echo "Usage: $0 [reset]"
|
||||
exit 1
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user