Unverified Commit 68c2a672 authored by Llein's avatar Llein Committed by GitHub

Fix launch game with old steam_api.ini

parent f1559826
...@@ -2408,9 +2408,13 @@ start_portwine () { ...@@ -2408,9 +2408,13 @@ start_portwine () {
for chk_lang_and_uname in "steam_emu.ini" "steam_api.ini" "steam_api64.ini" "SteamConfig.ini" ; do 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 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 "/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 "/UserName=/c\UserName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}"
sed -i "/PlayerName/c\PlayerName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}" sed -i "/PlayerName=/c\PlayerName=${USER}" "${PATH_TO_GAME}/${chk_lang_and_uname}"
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 fi
done done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment