Temporarily disabled video card selection when using gamescope and also cleaned and fixed the code and localization

This commit is contained in:
Boria138
2023-12-08 16:16:06 +06:00
parent 4f23160081
commit 600f959af0
4 changed files with 49 additions and 52 deletions

View File

@ -115,13 +115,14 @@ start_portwine () {
fi
if [[ "${PW_USE_GAMESCOPE}" == 1 ]] && command -v gamescope &>/dev/null ; then
if [[ ! -z "$GAMESCOPE_ARGS" ]]
then export PW_RUN_GAMESCOPE="gamescope -o 30 ${GAMESCOPE_ARGS} --"
else export PW_RUN_GAMESCOPE="gamescope -o 30 --"
# Workaround for https://gitlab.freedesktop.org/mesa/mesa/-/issues/6029
if grep -q "i915" <<< $(lsmod); then
export INTEL_DEBUG=norbc
fi
if [[ ! -z "$GAMESCOPE_ARGS" ]]
then export PW_RUN_GAMESCOPE="gamescope -o 30 ${GAMESCOPE_ARGS} --"
else export PW_RUN_GAMESCOPE="gamescope -o 30 --"
fi
export PW_WINE_FULLSCREEN_FSR=0
else
export PW_USE_GAMESCOPE=0