pre-update for PoE

This commit is contained in:
castro-fidel
2022-12-16 11:41:21 +03:00
parent 8d03563dbc
commit d7aac3dee6
9 changed files with 64 additions and 49 deletions

View File

@ -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 &
}

View File

@ -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 ""
}

View File

@ -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
}