I forgot to push changes, and it's been a while. I'm pretty sure this is game fixes.
This commit is contained in:
@@ -44,6 +44,32 @@ install_proton_bottle() {
|
||||
fi
|
||||
}
|
||||
|
||||
install_proton_winetricks_verb() {
|
||||
local verbName="$1"
|
||||
local output=""
|
||||
local status=0
|
||||
local hadErrexit="false"
|
||||
|
||||
require_umu || return 1
|
||||
if [[ $- == *e* ]]; then
|
||||
hadErrexit="true"
|
||||
fi
|
||||
set +e
|
||||
output="$(umu-run winetricks -q "$verbName" 2>&1)"
|
||||
status=$?
|
||||
if [[ "$hadErrexit" == "true" ]]; then
|
||||
set -e
|
||||
fi
|
||||
printf '%s\n' "$output"
|
||||
|
||||
if [[ "$status" -ne 0 ]]; then
|
||||
if grep -F -q "winetricks verb '${verbName}' is already installed" <<< "$output"; then
|
||||
return 0
|
||||
fi
|
||||
return "$status"
|
||||
fi
|
||||
}
|
||||
|
||||
umu_windows_path_to_unix() {
|
||||
local windowsPath="$1"
|
||||
local relativePath=""
|
||||
|
||||
Reference in New Issue
Block a user