added the ability to replace arguments to the WINEDEBUG

This commit is contained in:
Mikhail Tergoev
2025-01-13 12:52:34 +03:00
parent d91580f18e
commit 47c0fb5b75
2 changed files with 11 additions and 9 deletions

View File

@ -3140,18 +3140,18 @@ start_portwine () {
var_winedlloverride_update "winegstreamer="
fi
check_variables VKD3D_DEBUG none
check_variables VKD3D_SHADER_DEBUG none
check_variables DXVK_LOG_LEVEL none
check_variables DXVK_NVAPI_LOG_LEVEL none
check_variables VK_LOADER_DEBUG none
check_variables VKBASALT_LOG_LEVEL none
check_variables VKD3D_DEBUG "none"
check_variables VKD3D_SHADER_DEBUG "none"
check_variables DXVK_LOG_LEVEL "none"
check_variables DXVK_NVAPI_LOG_LEVEL "none"
check_variables VK_LOADER_DEBUG "none"
check_variables VKBASALT_LOG_LEVEL "none"
if [[ "${PW_LOG}" == 1 ]] \
|| [[ -n "$PW_DEBUG" ]]
then
export WINEDEBUG="+loaddll,+gstreamer"
export WINE_MONO_TRACE="E:System.NotImplementedException"
export VKBASALT_LOG_LEVEL="error"
check_variables WINEDEBUG "+loaddll"
check_variables WINE_MONO_TRACE "E:System.NotImplementedException"
check_variables VKBASALT_LOG_LEVEL "error"
else
export WINEDEBUG="-all"
unset WINE_MONO_TRACE