From 8c04f4c26696837ffb541c435bac7573de0b9659 Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Wed, 19 Feb 2025 19:16:24 +0300 Subject: [PATCH] check steam*.ini only for ru --- data_from_portwine/scripts/functions_helper | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 14772740..e1e62f17 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -4120,14 +4120,16 @@ start_portwine () { export DXVK_CONFIG_FILE="${PATH_TO_GAME}/dxvk.conf" fi - for chk_lang_and_uname in "steam_emu.ini" "steam_api.ini" "steam_api64.ini" "SteamConfig.ini" ; do - if [[ -f "${PATH_TO_GAME}/${chk_lang_and_uname}" ]] ; then - sed -i "/^Language/c\Language=${FULL_LN}" "${PATH_TO_GAME}/${chk_lang_and_uname}" - sed -i "/^UserName/c\UserName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}" - sed -i "/^PlayerName/c\PlayerName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}" - fi - done - + if [[ "$LANGUAGE" == ru ]] ; then + for chk_lang_and_uname in "steam_emu.ini" "steam_api.ini" "steam_api64.ini" "SteamConfig.ini" ; do + if [[ -f "${PATH_TO_GAME}/${chk_lang_and_uname}" ]] ; then + sed -i "/^Language/c\Language=${FULL_LN}" "${PATH_TO_GAME}/${chk_lang_and_uname}" + sed -i "/^UserName/c\UserName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}" + sed -i "/^PlayerName/c\PlayerName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}" + fi + done + fi + if [[ "${PW_DISABLE_COMPOSITING}" == "1" ]] \ && ! check_gamescope_session then