From 9203a72ef4b3a0d890ee3dc426043cfa8f107aff Mon Sep 17 00:00:00 2001 From: Mikhail Tergoev Date: Thu, 11 Jul 2024 19:53:45 +0300 Subject: [PATCH] fix auto close HYP.exe after installing --- data_from_portwine/changelog_ru | 2 ++ data_from_portwine/scripts/functions_helper | 2 +- data_from_portwine/scripts/pw_autoinstall/PW_HO_YO_PLAY | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/data_from_portwine/changelog_ru b/data_from_portwine/changelog_ru index 864cd2d..9c2fdc8 100755 --- a/data_from_portwine/changelog_ru +++ b/data_from_portwine/changelog_ru @@ -2,6 +2,8 @@ ----------------------------------------- История изменений: +fix disable CAS + ###Scripts version 2313### Дата: 11.07.2024 / Размер скачиваемого обновления: 4 мегабайта * добавлены все настройки gamescope в интерфейс PortProton (огромное спасибо Htylol) * добавлена экспериментальная возможность запуска нативной версии wine-wayland с сторонней версией wine, которая скомпилирована с данной функцией (спасибо Boria138) diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index c1607e4..05dade0 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -858,7 +858,7 @@ export -f kill_portwine pw_kill_autostart () { if [[ -z "${2}" ]] - then SWAIT=5 + then SWAIT=3 else SWAIT="${2}" fi sleep 5 diff --git a/data_from_portwine/scripts/pw_autoinstall/PW_HO_YO_PLAY b/data_from_portwine/scripts/pw_autoinstall/PW_HO_YO_PLAY index 1defcae..3350a8b 100755 --- a/data_from_portwine/scripts/pw_autoinstall/PW_HO_YO_PLAY +++ b/data_from_portwine/scripts/pw_autoinstall/PW_HO_YO_PLAY @@ -11,7 +11,7 @@ start_portwine if try_download "https://ys-api-os.mihoyo.com/event/download_porter/link/ys_global/genshinimpactpc/default" "${PW_AUTOINSTALL_EXE}" no_mirror then pw_start_progress_bar_block "Installing HoYoPlay Launcher." - pw_kill_autostart launcher.exe & + pw_kill_autostart HYP.exe & export PATH_TO_GAME="${PW_USER_TEMP}" pw_run "${PW_AUTOINSTALL_EXE}" export portwine_exe="$WINEPREFIX/drive_c/Program Files/HoYoPlay/launcher.exe"