Browse Source

Use /usr/lib/wine/wine64 as alternative path for wine64

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 1 year ago
parent
commit
bcf50df494
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      wineasio-register

+ 10
- 2
wineasio-register View File

@@ -41,7 +41,15 @@ for u in ${u32[@]}; do
done

# only continue past this point if wine64 command is available and prefix supports 64bit
if ! command -v wine64 > /dev/null || [ ! -d "${WINEPREFIX}/drive_c/windows/syswow64" ]; then
if [ ! -d "${WINEPREFIX}/drive_c/windows/syswow64" ]; then
exit 0
fi

if command -v wine64 >/dev/null 2>&1; then
WINE64="wine64"
elif [ -e /usr/lib/wine/wine64 ]; then
WINE64="/usr/lib/wine/wine64"
else
exit 0
fi

@@ -50,7 +58,7 @@ for u in ${u64[@]}; do
w=$(echo ${u} | sed -e 's|/x86_64-unix/wineasio64.dll.so|/x86_64-windows/wineasio64.dll|g')
if [ -e "${u}" ] && [ -e "${w}" ]; then
cp -v "${w}" "${WINEPREFIX}/drive_c/windows/system32"
wine64 regsvr32 "${u}"
${WINE64} regsvr32 "${u}"
break
fi
done

Loading…
Cancel
Save