From d7aac3dee6842405fc7b4768aebc298e395e5455 Mon Sep 17 00:00:00 2001 From: castro-fidel Date: Fri, 16 Dec 2022 11:41:21 +0300 Subject: [PATCH] pre-update for PoE --- data_from_portwine/img/gui/poe.png | Bin 0 -> 2936 bytes data_from_portwine/scripts/lang | 17 ++++++--- .../scripts/portwine_db/League of Legends | 35 +----------------- .../scripts/portwine_db/Path of Exile | 22 +++++++++++ data_from_portwine/scripts/portwine_db/steam | 7 ++++ .../scripts/pw_autoinstall/PW_POE | 20 ++++++++++ data_from_portwine/scripts/runlib | 5 --- data_from_portwine/scripts/start.sh | 3 +- data_from_portwine/scripts/var | 4 -- 9 files changed, 64 insertions(+), 49 deletions(-) create mode 100755 data_from_portwine/img/gui/poe.png create mode 100755 data_from_portwine/scripts/portwine_db/Path of Exile create mode 100755 data_from_portwine/scripts/pw_autoinstall/PW_POE diff --git a/data_from_portwine/img/gui/poe.png b/data_from_portwine/img/gui/poe.png new file mode 100755 index 0000000000000000000000000000000000000000..b270e271e0ff1210dbccbfa36b3feaacf72e9dfd GIT binary patch literal 2936 zcmV-;3y1WHP)IfUiY(#IT)$@R)FXtzawO67Do| z`m*qWaKw=V3STNcRplqe*($#&c4iY3;8#7h><>=;U?b;P!u`Tw%PbnT^QfBy()qa= zsogSra7i#p42={;Rxl|Lm715#{`L)4d{eB7$B@5G2}c}Ra^j7MT9mG7sTtAJ@|l!W z?!WVNGs8pG?tvIIJ$l}2FEnq%SK0GE4?XYe2pS&XJYV;(N=~EiqL=GhcppL=aC%YK zQafGftM2qCZXdRS{JKX)z&$_gV}X?qAS?lgFe|GTKWbJ1ZWUV z_8dL{000SaNLh0L01FZT01FZU(%pXi000TENklUV^oh1g!5z0$4PnXsWh}pRA@|Y|_}*mo{llni!#tO;b@Di&apYYAH|~ zwW4kX7T9HhS=ia#nVrXd%zd5HGqk%wl6BCg^@DSgnS1V;bI$+w|NWl>v_^}876UB? zS`4%pXfe=Y;LFQ^^m$d^a_=J~ooXW|hL2+T%C+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wBL$Qqw;16!R zqj87S-rh|^VbQLB(IcJC&bVVR6h8+@2}B+ef&PsKw%~ang_1LSzi8Yo`7H)o473<% iG0 "${PORT_WINE_TMP_PATH}/${portname}_loc" + exit 0 fi diff --git a/data_from_portwine/scripts/portwine_db/League of Legends b/data_from_portwine/scripts/portwine_db/League of Legends index c15d675f..806ad4bb 100755 --- a/data_from_portwine/scripts/portwine_db/League of Legends +++ b/data_from_portwine/scripts/portwine_db/League of Legends @@ -41,40 +41,7 @@ check_download_wine_ver_for_lol () { } check_download_wine_ver_for_lol -# check_port_for_lol () { -# "${pw_yad}" --progress --progress-text="Loading and start League of Legends. Please wait. It can take a long time!" \ -# --pulsate --no-buttons --undecorated --center --skip-taskbar --image="${PW_GUI_ICON_PATH}/covers/lol_cover.jpg" --image-on-top > /dev/null 4>&1 & -# PW_YAD_PID_LOL="$!" -# process=LeagueClientUx.exe -# while [[ -z `pidof ${process}` ]] ; do -# echo "PID ${process} not found" -# sleep 1 -# done -# uxpid=`pidof ${process}` -# echo "LeagueClientUx pid: ${uxpid}" -# port=$(xargs -0 < /proc/${uxpid}/cmdline | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p') -# if [ ! -n $port ]; then -# echo "Could not find port" -# exit 1 -# fi -# echo "Waiting for port ${port}" -# kill -STOP ${uxpid} -# timeout 200m /usr/bin/env bash -c " -# until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1 ; do -# sleep 1 -# done" -# kill -CONT ${uxpid} -# kill -s SIGUSR1 "${PW_YAD_PID_LOL}" -# } - add_in_start_portwine () { echo "" - # if [ "$(cat /proc/sys/abi/vsyscall32)" -ne 0 ] ; then - # pw_stop_progress_bar - # zenity --question --title="Fix for LoL anti-cheat" \ - # --text='Root rights are required to execute the command: \n"sysctl -w abi.vsyscall32=0"' --no-wrap - # [ "$?" = 1 ] && exit 0 - # pkexec /usr/bin/env bash -c 'sysctl -w abi.vsyscall32=0' - # fi - # check_port_for_lol & + } diff --git a/data_from_portwine/scripts/portwine_db/Path of Exile b/data_from_portwine/scripts/portwine_db/Path of Exile new file mode 100755 index 00000000..21a2a0b4 --- /dev/null +++ b/data_from_portwine/scripts/portwine_db/Path of Exile @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +#Author: castro-fidel +#PathOfExile.exe +#PathOfExile_x64.exe +#Rating=1-5 +#####################examples########################### +# export WINEDLLOVERRIDES="mscoree,mshtml=" +export LAUNCH_PARAMETERS="--nologo --noasync --nopreload -gc 2" +export PW_VULKAN_USE=1 +export PW_MUST_HAVE_DLL="" +# export PW_DLL_INSTALL="riched20 usp10" +export PW_PREFIX_NAME="PATH_OF_EXILE" +export PW_NO_FSYNC=0 +export PW_NO_ESYNC=1 +# export PW_DISABLED_CREATE_DB=1 +export PW_USE_D3D_EXTRAS=1 +#export PW_GUI_DISABLED_CS=1 # 1 = disabled GUI +export PW_WINDOWS_VER=7 + +add_in_start_portwine () { + echo "" +} diff --git a/data_from_portwine/scripts/portwine_db/steam b/data_from_portwine/scripts/portwine_db/steam index 7fd89885..124be8c5 100755 --- a/data_from_portwine/scripts/portwine_db/steam +++ b/data_from_portwine/scripts/portwine_db/steam @@ -10,3 +10,10 @@ export WINEDLLOVERRIDES="libglesv2,lsteamclient=" export LAUNCH_PARAMETERS="-no-cef-sandbox" export PW_VULKAN_USE=1 # export PW_WINE_USE=PROTON_GE + +add_in_start_portwine () { + echo "Disabled silent autostart steam." + if [[ -f "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/user.reg" ]] ; then + sed -i '/steam.exe\\" -silent"/d' "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/user.reg" + fi +} diff --git a/data_from_portwine/scripts/pw_autoinstall/PW_POE b/data_from_portwine/scripts/pw_autoinstall/PW_POE new file mode 100755 index 00000000..914a888c --- /dev/null +++ b/data_from_portwine/scripts/pw_autoinstall/PW_POE @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Author: Castro Fidel (linux-gaming.ru) +######################################################################## +export LAUNCH_PARAMETERS=("/S") +export PW_AUTOINSTALL_EXE="${PW_USER_TEMP}/PathOfExileInstaller.exe" +export PW_PREFIX_NAME="PATH_OF_EXILE" + +start_portwine +if try_download "https://web.poecdn.com/protected/downloads/PathOfExileInstaller.exe?key=lpKVe-ZJOqVrur8612s8gg" "${PW_AUTOINSTALL_EXE}" +then + pw_start_progress_bar_block "${loc_gui_installing_the} Path of Exile. ${loc_gui_please_wait}" + pw_run "${PW_AUTOINSTALL_EXE}" + portwine_exe="$WINEPREFIX/drive_c/Program Files (x86)/Grinding Gear Games/Path of Exile/PathOfExile.exe" + try_remove_file "${PW_AUTOINSTALL_EXE}" + kill_portwine + pw_stop_progress_bar + export PORTWINE_CREATE_SHORTCUT_NAME="Path of Exile" + portwine_create_shortcut +fi +stop_portwine diff --git a/data_from_portwine/scripts/runlib b/data_from_portwine/scripts/runlib index 08e6b5b3..8d995991 100755 --- a/data_from_portwine/scripts/runlib +++ b/data_from_portwine/scripts/runlib @@ -651,11 +651,6 @@ cd "${PORT_SCRIPTS_PATH}" export PW_PLUGINS_PATH="${PORT_WINE_TMP_PATH}/plugins${PW_PLUGINS_VER}" -if [ ! -f "${PORT_WINE_TMP_PATH}/${portname}_loc" ] ; then - SET_LANG=`zenity --title "LAUNGUAGE" --text "Select the language" --list --radiolist \ - --column="Set:" --column "Choose language:" TRUE "RUS" FALSE "ENG" ` - echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/${portname}_loc" -fi . "${PORT_SCRIPTS_PATH}"/lang . "${PORT_SCRIPTS_PATH}"/zen_yad_gui diff --git a/data_from_portwine/scripts/start.sh b/data_from_portwine/scripts/start.sh index 21a036c2..b1500856 100755 --- a/data_from_portwine/scripts/start.sh +++ b/data_from_portwine/scripts/start.sh @@ -705,7 +705,8 @@ else --field=" Indiegala Client"!"$PW_GUI_ICON_PATH/igclient.png"!"":"FBTN" '@bash -c "button_click PW_IGCLIENT"' \ --field=" Warframe"!"$PW_GUI_ICON_PATH/warframe.png"!"":"FBTN" '@bash -c "button_click PW_WARFRAME"' \ --field=" Panzar"!"$PW_GUI_ICON_PATH/panzar.png"!"":"FBTN" '@bash -c "button_click PW_PANZAR"' & - + + # --field=" Path of Exile (TEST)"!"$PW_GUI_ICON_PATH/poe.png"!"":"FBTN" '@bash -c "button_click PW_POE"' # --field=" Guild Wars 2"!"$PW_GUI_ICON_PATH/gw2.png"!"":"FBTN" '@bash -c "button_click PW_GUILD_WARS_2"' # --field=" Bethesda.net Launcher"!"$PW_GUI_ICON_PATH/bethesda.png"!"":"FBTN" '@bash -c "button_click PW_BETHESDA"' diff --git a/data_from_portwine/scripts/var b/data_from_portwine/scripts/var index 6411dbf7..5c100d7e 100755 --- a/data_from_portwine/scripts/var +++ b/data_from_portwine/scripts/var @@ -88,8 +88,4 @@ pw_other_fixes () fi fi fi - #disabled silent autostart steam - # if [[ -f "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/user.reg" ]] ; then - # sed -i '/steam.exe\\" -silent"/d' "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/user.reg" - # fi }