forked from CastroFidel/PortWINE
		
	###Scripts version 2077###
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/bin/env bash | ||||
| # Author: Castro-Fidel (PortWINE-Linux.ru) | ||||
| ######################################################################## | ||||
| pw_ping_test () { | ||||
| @@ -11,22 +11,11 @@ print_error () { | ||||
| } | ||||
| export -f print_error | ||||
|  | ||||
| zenity_error () { | ||||
|     echo "ERROR: $@" | ||||
|     zenity --error --no-wrap --text "$@" 2> /dev/null | ||||
| } | ||||
| export -f zenity_error | ||||
|  | ||||
| print_info () { | ||||
|     echo "INFO: $@" | ||||
| } | ||||
| export -f print_info | ||||
|  | ||||
| zenity_info () { | ||||
|     echo "INFO: $@" | ||||
|     zenity --info --no-wrap --text "$@" 2> /dev/null | ||||
| } | ||||
| export -f zenity_info | ||||
|  | ||||
| print_var () { | ||||
|     for vp in $@ ; do echo "${vp}=${!vp}" ; done | ||||
| @@ -158,19 +147,11 @@ try_download_silent () { | ||||
|     fi | ||||
| } | ||||
|  | ||||
| zenity_error_download () { | ||||
|     `zenity --error --title "Error..." --text "You will need to check internet connection,\nand press OK for repeat download" --no-wrap ` | ||||
|     if [[ "$?" != 0 ]] ; then | ||||
|         stop_portwine | ||||
|     else | ||||
|         return 0 | ||||
|     fi | ||||
| } | ||||
|  | ||||
| create_new_dir () { | ||||
|     if [ ! -d "$1" ] ; then | ||||
|         mkdir -p "$1" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| var_winedlloverride_update () { | ||||
| @@ -178,6 +159,7 @@ var_winedlloverride_update () { | ||||
|     then export WINEDLLOVERRIDES="${1};${WINEDLLOVERRIDES}" | ||||
|     else export WINEDLLOVERRIDES="${1}" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| var_vkd3d_config_update () { | ||||
| @@ -185,6 +167,7 @@ var_vkd3d_config_update () { | ||||
|     then export VKD3D_CONFIG="${1};${VKD3D_CONFIG}" | ||||
|     else export VKD3D_CONFIG="${1}" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| unpack_tar_xz () { | ||||
| @@ -216,6 +199,7 @@ pw_mangohud_check () { | ||||
|     else | ||||
|         export DISABLE_MANGOHUD=1 | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
| export -f pw_mangohud_check | ||||
|  | ||||
| @@ -240,12 +224,7 @@ pw_vkbasalt_check () { | ||||
|     else | ||||
|         export DISABLE_VKBASALT=1 | ||||
|     fi | ||||
|  | ||||
| } | ||||
|  | ||||
| gui_question () { | ||||
|     `zenity --question --title "${inst_set}." --text "$1" --no-wrap ` &> /dev/null | ||||
|      [ $? -eq "0" ] && return 0 || return 1 | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| pw_clear_pfx () { | ||||
| @@ -283,14 +262,16 @@ pw_clear_pfx () { | ||||
|     try_remove_dir "${PORT_WINE_TMP_PATH}/mesa_shader_cache" | ||||
|     rm -f "${PORT_WINE_TMP_PATH}"/*.bin | ||||
|     rm -f "${PORT_WINE_TMP_PATH}"/*.foz | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| check_user_conf () { | ||||
|     if [ ! -f "${USER_CONF}" ]; then | ||||
|         echo "#!/bin/bash" > "${USER_CONF}" | ||||
|         echo "#!/usr/bin/env bash" > "${USER_CONF}" | ||||
|         echo "# User overides db and var settings..." >> "${USER_CONF}" | ||||
|         chmod u+x "${USER_CONF}" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| init_wine_ver () { | ||||
| @@ -362,63 +343,14 @@ init_wine_ver () { | ||||
|             fi | ||||
|         done | ||||
|     fi | ||||
| } | ||||
|  | ||||
| sszen() { | ||||
|     zenity --progress --title="Settings..." --text="Updating parameters" --pulsate --auto-close --width=500 --height=90 --no-cancel | ||||
| } | ||||
|  | ||||
| pw_start_progress_bar_cover () { | ||||
|     PW_GIF_FILE="$1" | ||||
|     PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 20}'` | ||||
|     PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 20}'` | ||||
|     "${pw_yad}" --picture --filename="${PW_GIF_FILE}" --close-on-unfocus --no-buttons --undecorated --center \ | ||||
|     --skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y > /dev/null 2>&1 & | ||||
|     export PW_YAD_PID_PROGRESS_BAR_COVER="$!" | ||||
| } | ||||
|  | ||||
| pw_update_pfx_cover_gui () { | ||||
|         PW_KEY_PROGRESS_BAR=$RANDOM | ||||
|         PW_GIF_FILE="${PW_GUI_ICON_PATH}/covers/pw_update_pfx_cover.gif" | ||||
|         PW_GIF_SIZE_X=`file "${PW_GIF_FILE}" | awk '{print $7 + 40}'` | ||||
|         PW_GIF_SIZE_Y=`file "${PW_GIF_FILE}" | awk '{print $9 + 80}'` | ||||
|         echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log" | ||||
|         while [[ -f "${PORT_WINE_TMP_PATH}/update_pfx_log" ]] ; do | ||||
|             sleep 1 | ||||
|             while read -r gui_line  ; do | ||||
|                 echo "# ${gui_line}" | ||||
|             done | ||||
|         done < "${PORT_WINE_TMP_PATH}/update_pfx_log" | "${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR  --tabnum="2" --text-info --tail & | ||||
|         "${pw_yad_new}" --plug=$PW_KEY_PROGRESS_BAR --tabnum="1" --picture --filename="${PW_GIF_FILE}" --image-on-top & | ||||
|  | ||||
|         "${pw_yad_new}" --notebook --key="$PW_KEY_PROGRESS_BAR" --tab=LOGO --tab=TERMINAL --no-buttons --undecorated \ | ||||
|         --center --auto-close --skip-taskbar --width=$PW_GIF_SIZE_X --height=$PW_GIF_SIZE_Y --tab-pos=bottom & | ||||
|         export PW_YAD_PID_PFX_COVER_UI="$!" | ||||
| } | ||||
|  | ||||
| pw_start_progress_bar_cs () { | ||||
|     "${pw_yad}" --progress --progress-text="$@" --pulsate --close-on-unfocus \ | ||||
|     --no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 & | ||||
|     export PW_YAD_PID_PROGRESS_BAR_CS="$!" | ||||
| } | ||||
|  | ||||
| pw_start_progress_bar_block () { | ||||
|     "${pw_yad}" --progress --progress-text="$@" --pulsate \ | ||||
|     --no-buttons --undecorated --center --skip-taskbar --width=500 --wrap-width=500 > /dev/null 2>&1 & | ||||
|     export PW_YAD_PID_PROGRESS_BAR_BLOCK="$!" | ||||
| } | ||||
|  | ||||
| pw_stop_progress_bar () { | ||||
|     kill -s SIGUSR1 "$PW_YAD_PID_PROGRESS_BAR_BLOCK" "$PW_YAD_PID_PROGRESS_BAR_CS" "$PW_YAD_PID_PFX_COVER_UI" \ | ||||
|     "$PW_YAD_PID_PROGRESS_BAR_COVER" > /dev/null 2>&1 | ||||
|     return 0 | ||||
| } | ||||
| export -f pw_stop_progress_bar | ||||
|  | ||||
| wait_wineserver () { | ||||
|     while [ ! -z "$(ls -l /proc/*/exe 2>/dev/null | grep -ie ${portname} | grep -E 'wine(64)?-preloader|wineserver' | awk -F/ '{print $3}')" ] ; do | ||||
|         sleep 1 | ||||
|     done | ||||
|     return 0 | ||||
| } | ||||
| export -f wait_wineserver | ||||
|  | ||||
| @@ -439,6 +371,7 @@ kill_portwine () { | ||||
|             fi | ||||
|         done | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
| export -f kill_portwine | ||||
|  | ||||
| @@ -461,6 +394,7 @@ pw_kill_autostart () { | ||||
|     if [[ ! -z "`ls "${WINEPREFIX}"/drive_c/ | grep -m 1 ".tmp"`" ]] ; then | ||||
|         rm -f "${WINEPREFIX}"/drive_c/*.tmp | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
| export -f pw_kill_autostart | ||||
|  | ||||
| @@ -522,6 +456,7 @@ pw_download_libs () { | ||||
|     else | ||||
|         export PW_XTERM="${PW_WINELIB}/runtime/files/bin/xterm -geometry 159x37 -e" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| pw_check_and_download_wine () { | ||||
| @@ -552,6 +487,7 @@ pw_check_and_download_wine () { | ||||
|             zenity_error_download && pw_check_and_download_wine | ||||
|         fi | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| pw_check_and_download_plugins () { | ||||
| @@ -577,42 +513,7 @@ pw_check_and_download_plugins () { | ||||
|             zenity_error_download && pw_check_and_download_wine | ||||
|         fi | ||||
|     fi | ||||
| } | ||||
|  | ||||
| open_changelog () { | ||||
|     "${pw_yad}" --title="Changelog" --borders=10 --no-buttons --text-align=center \ | ||||
|     --text-info --show-uri --wrap --center --width=1200 --height=550 --uri-color=red \ | ||||
|     --filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}" | ||||
| } | ||||
| export -f open_changelog | ||||
|  | ||||
| pw_tray_icon () { | ||||
|     if [ ! -z "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" ] ; then | ||||
|         kill -s SIGUSR1 "`pgrep -a yad_new | grep "\-\-notification" | awk '{print $1}'`" | ||||
|     fi | ||||
|     tray_icon_click () { | ||||
|         echo "" | ||||
|     } | ||||
|     export -f tray_icon_click | ||||
|     pw_tray_winefile () { | ||||
|         pw_run explorer | ||||
|     } | ||||
|     export -f pw_tray_winefile | ||||
|     tray_icon_click_exit () { | ||||
|         pw_stop_progress_bar | ||||
|         stop_portwine | ||||
|     } | ||||
|     export -f tray_icon_click_exit | ||||
|  | ||||
|     "${pw_yad_new}" --notification --no-middle --text="PortProton" \ | ||||
|     --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|     --image="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|     --command="bash -c tray_icon_click" \ | ||||
|     --tooltip="PortProton" \ | ||||
|     --menu="| \ | ||||
| <<<     WINEFILE     >>>!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/port_winefile.png"| \ | ||||
| <<< CHANGE  LOG >>>!bash -c open_changelog!"$PW_GUI_ICON_PATH/port_changelog.png"| \ | ||||
| <<<   FORCE  EXIT   >>>!bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/port_exit.png"|" & | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| pw_init_db () { | ||||
| @@ -647,6 +548,7 @@ pw_init_db () { | ||||
|             export PATH_TO_GAME="$( cd "$( dirname "${portwine_exe}" )" >/dev/null 2>&1 && pwd )" | ||||
|         fi | ||||
|     fi | ||||
|     return 0 | ||||
| #        export WIN_PATH_TO_GAME=`echo "C:${PATH_TO_GAME}" | sed "s%$WINEPREFIX%%g" | sed "s/drive_c//g" | sed 's#/#\\\#g'` | ||||
| } | ||||
|  | ||||
| @@ -714,7 +616,7 @@ pw_port_update () { | ||||
|                                 echo "${scripts_current_ver}" > "${PORT_WINE_TMP_PATH}/scripts_ver" | ||||
|                                 zenity --title="Changelog" --text-info --width=1200 --height=550 \ | ||||
|                                 --filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}" | ||||
|                                 [ "$?" == 0 ] && /bin/bash -c ${pw_full_command_line[*]} & | ||||
|                                 [ "$?" == 0 ] && /usr/bin/env bash -c ${pw_full_command_line[*]} & | ||||
|                                 exit 0 | ||||
|                             fi | ||||
|                         else | ||||
| @@ -729,6 +631,7 @@ pw_port_update () { | ||||
|         fi | ||||
|         try_remove_file "${PORT_WINE_TMP_PATH}/curent_var_ver" | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -753,6 +656,7 @@ update_winetricks () { | ||||
|         sed -i 's/vc_redist.x64.exe 003063723b2131da23f40e2063fb79867bae275f7b5c099dbd1792e25845872b/vc_redist.x64.exe 9b9dd72c27ab1db081de56bb7b73bee9a00f60d14ed8e6fde45dab3e619b5f04/g' "${PORT_WINE_TMP_PATH}/winetricks" | ||||
|  | ||||
|     fi | ||||
|     return 0 | ||||
| } | ||||
|  | ||||
| edit_db_from_gui () { | ||||
| @@ -768,246 +672,5 @@ edit_db_from_gui () { | ||||
|             sed -ri "s/.*export ${mod_db}=.*/export ${mod_db}=${!mod_db}/g" "${PORTWINE_DB_FILE}" | ||||
|         fi | ||||
|     done | ||||
| } | ||||
|  | ||||
| pw_gui_for_edit_db () { | ||||
|     KEY_EDIT_DB_GUI=$RANDOM | ||||
|     if [[ -n "`echo "${MANGOHUD_CONFIG}" | grep "fps_limit"`" ]] ; then | ||||
|         FPS_LIMIT_VAR="`echo ${MANGOHUD_CONFIG} | sed 's/.*fps_limit=//g' | awk -F, '{print $1}'`" | ||||
|     else | ||||
|         FPS_LIMIT_VAR=0 | ||||
|     fi | ||||
|     echo "FPS_LIMIT_VAR=$FPS_LIMIT_VAR" | ||||
|     unset ADD_CHK_BOX_EDIT_DB | ||||
|     edit_db_field_add () { | ||||
|         for int_to_boole in $@ ; do | ||||
|             if [ "${!int_to_boole}" == "1" ] | ||||
|             then export ${int_to_boole}="TRUE" | ||||
|             else export ${int_to_boole}="FALSE" | ||||
|             fi | ||||
|             TMP_HELP_FOR_GUI="${int_to_boole}_INFO" | ||||
|             int_to_boole_non_pw="`echo ${int_to_boole} | sed 's/^PW_//'`" | ||||
|             ADD_CHK_BOX_EDIT_DB+="--field=  ${int_to_boole_non_pw}    !${!TMP_HELP_FOR_GUI}:CHK%${!int_to_boole}%" | ||||
|         done | ||||
|     } | ||||
|     edit_db_field_add $@ | ||||
|     old_IFS=$IFS | ||||
|     IFS="%"  | ||||
|     "${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="1" --form --separator=" " --columns=4 ${ADD_CHK_BOX_EDIT_DB} \ | ||||
|     1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db" &  | ||||
|     IFS=$old_IFS | ||||
|  | ||||
|     "${pw_yad_new}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator=" " --columns=1 \ | ||||
|     --field="MANGOHUD FPS LIMIT (0-disabled):SCL" ${FPS_LIMIT_VAR} 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" &  | ||||
|  | ||||
|     "${pw_yad_new}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="400" \ | ||||
|     --text "Change settings in database file for ${PORTWINE_DB}\n" --separator=" " --borders=10 --center \ | ||||
|     --window-icon="$PW_GUI_ICON_PATH/port_proton.png" --button="CANCEL":1 --button="OPEN DB FILE":150 --button="SAVE CHANGES":0 | ||||
|     YAD_STATUS="$?" | ||||
|     if [[ "$YAD_STATUS" == "1" ]] ; then | ||||
|         /bin/bash -c ${pw_full_command_line[*]} & | ||||
|         exit 0 | ||||
|     elif [[ "$YAD_STATUS" == "252" ]] ; then  | ||||
|         exit 0 | ||||
|     elif [ "$YAD_STATUS" == "150" ] ; then | ||||
|         xdg-open "${PORTWINE_DB_FILE}" & | ||||
|         exit 0 | ||||
|     fi | ||||
|     output_yad_edit_db=(`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_edit_db"`) | ||||
|     bool_from_yad=0 | ||||
|     edit_db_field_read () { | ||||
|         for boole_to_int in $@ ; do | ||||
|             export ${boole_to_int}=${output_yad_edit_db[$bool_from_yad]} | ||||
|             if [ "${!boole_to_int}" == "TRUE" ] | ||||
|             then export ${boole_to_int}="1" | ||||
|             else export ${boole_to_int}="0" | ||||
|             fi | ||||
|             export bool_from_yad=$(( ${bool_from_yad} + 1 )) | ||||
|         done | ||||
|     } | ||||
|     edit_db_field_read $@ | ||||
|     FPS_LIMIT="`cat "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit"`" | ||||
|     if [ "${FPS_LIMIT}" == 0 ] ; then | ||||
|         export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt | ||||
|     else | ||||
|         export MANGOHUD_CONFIG=font_size=24,position=top-left,toggle_hud=Shift_R+F12,no_display,resolution,wine,gpu_name,vulkan_driver,gpu_stats,vkbasalt,fps_limit=${FPS_LIMIT} | ||||
|     fi | ||||
|     edit_db_from_gui $@ MANGOHUD_CONFIG | ||||
|  | ||||
|     # PW_DB_TMP=`cat "${PORTWINE_DB_FILE}"` | ||||
|     # echo "${PW_DB_TMP}" | awk '! a[$0]++' > "${PORTWINE_DB_FILE}" | ||||
|     # unset PW_DB_TMP | ||||
| } | ||||
|  | ||||
| gui_proton_downloader () { | ||||
|     pw_start_progress_bar_block "Check new version WINE from GitHub" | ||||
|     #PROTON_GE | ||||
|     export PROTON_GE_GIT=($(curl -s "https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases" | grep "browser_download_url.*\.tar\.gz" | cut -d \" -f 4)) | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|     if [[ ! -z "${PROTON_GE_GIT}" ]] ; then | ||||
|         for PGEGIT in ${PROTON_GE_GIT[@]} ; do | ||||
|             echo ${PGEGIT} | awk -F/ '{print $NF}' | sed 's/.tar.gz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|         done | ||||
|         sed -i '/Proton-6.5-GE-2/,$d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|         sed -i '/github-action/d' "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|     fi | ||||
|  | ||||
|     #PROTON_PW | ||||
|     export PROTON_PW_GIT=($(curl -s "https://api.github.com/repos/Castro-Fidel/wine_builds/releases" | grep "browser_download_url.*\.tar\.xz" | cut -d \" -f 4)) | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|     if [[ ! -z "${PROTON_PW_GIT}" ]] ; then | ||||
|         for PPWGIT in ${PROTON_PW_GIT[@]} ; do | ||||
|             echo ${PPWGIT} | awk -F/ '{print $NF}' | sed 's/.tar.xz//' >> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|         done | ||||
|         sed -i /${PW_PROTON_GE_VER}/d "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|         sed -i '/plugins/d' "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|     fi | ||||
|     pw_stop_progress_bar | ||||
|     if [[ -z "${PROTON_GE_GIT}" ]] || [[ -z "${PROTON_PW_GIT}" ]] ; then | ||||
|         zenity_error "Error: check wine from github." | ||||
|         /bin/bash -c ${pw_full_command_line[*]} & | ||||
|         exit 0 | ||||
|     fi | ||||
|     for INSTALLING_VERSION_IN_DIST in `ls "${PORT_WINE_PATH}/data/dist/"` ; do | ||||
|         sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|         sed -i "/${INSTALLING_VERSION_IN_DIST}$/Id" "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|     done | ||||
| 	#Installed wine | ||||
| 	ls -l ${PORT_WINE_PATH}/data/dist | awk '{print $9}' | sed '/^$/d' > ${PORT_WINE_TMP_PATH}/tmp_installed_wine	 | ||||
|     #GUI | ||||
|     export KEY_WINE=$RANDOM | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set" | ||||
| 	try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" | ||||
|     `"${pw_yad}" --plug=$KEY_WINE --tabnum=2 --list --separator="" --listen \ | ||||
|     --column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"` & | ||||
|     `"${pw_yad}" --plug=$KEY_WINE --tabnum=1 --list --separator="" --listen \ | ||||
|     --column "Select WINE for download:" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set"` & | ||||
| 	`"${pw_yad}" --plug=$KEY_WINE --tabnum=3 --list --separator="" --listen \ | ||||
|     --column "Select installed WINE for delete:" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"` & | ||||
|     `"${pw_yad}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center --center \ | ||||
|     --window-icon="$PW_GUI_ICON_PATH/port_proton.png" --title "Download..." --separator="" \ | ||||
|     --tab-pos=top --tab="PROTON-GE" --tab="PROTON-PW" --tab="INSTALLED"` | ||||
|     YAD_WINE_STATUS="$?" | ||||
|     if [[ "$YAD_WINE_STATUS" == "1" || "$YAD_WINE_STATUS" == "252" ]] ; then | ||||
|         /bin/bash -c ${pw_full_command_line[*]} & | ||||
|         exit 0 | ||||
|     fi | ||||
|  | ||||
|     if [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_set" | awk '{print $1}'` ] ; then | ||||
|         export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_set"`" | ||||
|     elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" | awk '{print $1}'` ] ; then | ||||
|         export VERSION_WINE_GIT="`cat "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set"`" | ||||
| 	elif [ ! -z `cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" | awk '{print $1}'` ] ; then | ||||
| 	    export VERSION_INSTALLED_WINE="`cat "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"`" | ||||
|     fi | ||||
|  | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" | ||||
|     try_remove_file "${PORT_WINE_TMP_PATH}/tmp_proton_set" | ||||
| 	try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine" | ||||
|  | ||||
|     for GIVE_WINE_URL in ${PROTON_GE_GIT[@]} ${PROTON_PW_GIT[@]} ; do | ||||
|         if [ ! -z `echo ${GIVE_WINE_URL} | grep "$VERSION_WINE_GIT"` ] ; then | ||||
|             export URL_VERSION_PROTON_GIT="${GIVE_WINE_URL}" | ||||
|         fi | ||||
|     done | ||||
| 	 | ||||
| 	if [[ ! -z "${VERSION_INSTALLED_WINE}" ]]; then | ||||
| 		try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_INSTALLED_WINE}" | ||||
| 		unset VERSION_INSTALLED_WINE | ||||
|         /bin/bash -c ${pw_full_command_line[*]} & | ||||
|         exit 0 | ||||
| 	fi | ||||
| 	 | ||||
|     print_info "Download and install ${VERSION_WINE_GIT}..." | ||||
|     if try_download_to_path "${URL_VERSION_PROTON_GIT}" "${PORT_WINE_PATH}/data/tmp/" ; then | ||||
|         for archive_type in "gz" "xz" ; do | ||||
|             if [ -f "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" ] ; then | ||||
|                 if unpack_tar_${archive_type} "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" "${PORT_WINE_PATH}/data/dist/" ; then | ||||
|                     try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" | ||||
|                     if [ ! -z "${portwine_exe}" ]; then | ||||
|                         PW_WINE_USE=${VERSION_WINE_GIT} | ||||
|                         edit_db_from_gui PW_WINE_USE | ||||
|                     fi | ||||
|                 else | ||||
|                     try_remove_file "${PORT_WINE_PATH}/data/tmp/${VERSION_WINE_GIT}.tar.${archive_type}" | ||||
|                     try_remove_dir "${PORT_WINE_PATH}/data/dist/${VERSION_WINE_GIT}" | ||||
|                     zenity_error_download && gui_proton_downloader | ||||
|                 fi | ||||
|             fi | ||||
|         done | ||||
|     else | ||||
|         zenity_error_download && gui_proton_downloader | ||||
|     fi | ||||
|     /bin/bash -c ${pw_full_command_line[*]} & | ||||
|     exit 0 | ||||
| } | ||||
| export -f gui_proton_downloader | ||||
|  | ||||
| gui_vkBasalt () { | ||||
|     KEY_FX_GUI=$RANDOM | ||||
|     FILE_VKBASALT_CONF="${PORT_WINE_PATH}/data/vkBasalt.conf" | ||||
|     LIST_FX=(`grep ".fx$" "${FILE_VKBASALT_CONF}" | awk '{print $1}'`) | ||||
|     GET_FX_IN_FILE=(`echo ${PW_VKBASALT_EFFECTS} | sed s/"cas:"// | sed s/":"/" "/g`) | ||||
|     unset ADD_GUI_FX GUI_FX_RESULT | ||||
|     for add_list_fx in ${LIST_FX[@]} ; do | ||||
|         PW_VKBASALT_GUI_HELP="PW_${add_list_fx}_INFO" | ||||
|         if [[ ! -z `echo " ${GET_FX_IN_FILE[@]} " | grep " ${add_list_fx} "` ]] ; then | ||||
|             ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%TRUE%" | ||||
|         else | ||||
|             ADD_GUI_FX+="--field=$add_list_fx!${!PW_VKBASALT_GUI_HELP}:CHK%FALSE%" | ||||
|         fi | ||||
|     done | ||||
|     if [[ ! -z "${PW_VKBASALT_FFX_CAS}" ]] ; then | ||||
|         VKBASALT_FFX_CAS_GUI=`bc -s <<< "${PW_VKBASALT_FFX_CAS}*100" | sed 's/\..*//'` | ||||
|     else | ||||
|         VKBASALT_FFX_CAS_GUI=75 | ||||
|     fi | ||||
|     export old_IFS=$IFS | ||||
|     export IFS="%"  | ||||
|     "${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=5 --separator=" " \ | ||||
|     ${ADD_GUI_FX} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set" & | ||||
|     export IFS="${old_IFS}"  | ||||
|  | ||||
|     "${pw_yad_new}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \ | ||||
|     --field="AMD FidelityFX - Contrast Adaptive Sharpening":SCL "${VKBASALT_FFX_CAS_GUI}" \ | ||||
|     1> "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" & | ||||
|  | ||||
|     "${pw_yad_new}" --paned --key="$KEY_FX_GUI" --height="500" --title="vkBasalt" --center --borders=10 \ | ||||
|     --separator=" " --window-icon="$PW_GUI_ICON_PATH/port_proton.png" \ | ||||
|     --button="CANCEL":1 --button="DISABLE  VKBASALT":180 --button="ENABLE  VKBASALT":182 | ||||
|     YAD_VKBASALT_STATUS="$?" | ||||
|     case "${YAD_VKBASALT_STATUS}" in | ||||
|         1|252) | ||||
|             /bin/bash -c ${pw_full_command_line[*]} & | ||||
|             exit 0 ;; | ||||
|         180) | ||||
|             export ENABLE_VKBASALT=0 ;; | ||||
|         182) | ||||
|             export ENABLE_VKBASALT=1 ;; | ||||
|     esac | ||||
|     YAD_BASALT_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set"` | ||||
|     YAD_CAS_SET=`cat "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" | sed s/" "//g` | ||||
|  | ||||
|     INT_COUNT_FX=0 | ||||
|     for read_list_fx in ${YAD_BASALT_SET} ; do | ||||
|         if [[ "$read_list_fx" == "TRUE" ]] ; then | ||||
|             export GUI_FX_RESULT+=":${LIST_FX[$INT_COUNT_FX]}" | ||||
|         fi | ||||
|         export INT_COUNT_FX=$(( ${INT_COUNT_FX} + 1 )) | ||||
|     done | ||||
|     GUI_FX_RESULT="cas${GUI_FX_RESULT}" | ||||
|     export PW_VKBASALT_EFFECTS="${GUI_FX_RESULT}"        | ||||
|  | ||||
|     if [[ "$YAD_CAS_SET" == "0" ]] ; then | ||||
|         export PW_VKBASALT_FFX_CAS="0" | ||||
|     elif [[ "$YAD_CAS_SET" == "100" ]] ; then | ||||
|         export PW_VKBASALT_FFX_CAS="1" | ||||
|     else | ||||
|         export PW_VKBASALT_FFX_CAS="0`bc -s <<< "scale=2; $YAD_CAS_SET/100"`" | ||||
|     fi | ||||
|     edit_db_from_gui PW_VKBASALT_EFFECTS PW_VKBASALT_FFX_CAS ENABLE_VKBASALT | ||||
|     /bin/bash -c ${pw_full_command_line[*]} & | ||||
|     exit 0 | ||||
|     return 0 | ||||
| } | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/bin/env bash | ||||
| # Author: PortWINE-Linux.ru | ||||
|  | ||||
| read "update_loc" < "${PORT_WINE_TMP_PATH}/${portname}_loc" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #AC4BFSP.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #ACIII.exe  | ||||
|     #ACLiberation.exe      | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: anonymous | ||||
| #ACValhalla.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #ALOTInstaller.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Аливэй | ||||
| #Ableton Live 11 Suite.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #AliceMadnessReturns.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: garrett | ||||
| #AI.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #ACM.exe  | ||||
| #Rating=? | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Anno4.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: stalker | ||||
| #AnomalyLauncher.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: akai | ||||
| #Arthur.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #AssassinsCreedII.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #AssassinsCreedIIGame.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Сергей 33 (46) | ||||
| #BF2.exe  | ||||
| #Rating=4 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #bg3.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: dez | ||||
| #Battle.net Launcher.exe | ||||
| #Battle.net-Setup.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: kosta | ||||
| #Biomutant.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #Botanicula.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:PortWINE | ||||
| #Brokgame.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #CoJBiBGame_x86.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Cinebench.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Configurator.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: user | ||||
| #Control_DX11.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: user | ||||
| #Control_DX12.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #CyberShadow.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Cyberpunk2077.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #DAOriginsLauncher.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE-Linux.ru | ||||
| #DOOMEternalx64vk.exe | ||||
| #Rating=? | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nix | ||||
| #DOOMx64.exe | ||||
| #DOOMx64vk.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #DXHRDC.exe | ||||
| #DXHumanRevolutionDC.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #DaysGone.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #Dead Space.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #ds.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #FSD.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Deponia.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: MrModer#6697 | ||||
| #DetroitBecomeHuman.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: spider | ||||
| #Diablo II.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Disjunction.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Dolphin.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #EDLaunch.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #EoCApp.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #EpicGamesLauncher.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: fff555w | ||||
| #Esprit Games.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #FL.exe  | ||||
|     #FL64.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #FSD.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE-Linux.ru | ||||
| #FarCry.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: gamer | ||||
| #FarCry6.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #FarLoneSails.exe  | ||||
|     #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nixon | ||||
| #farcry3_d3d11.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nixon | ||||
| #farcry3.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nixon | ||||
| #FarCry4.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: garrett | ||||
| #ForzaHorizon4.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #Frozen Throne.exe  | ||||
| #Rating=4 - no video | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: lemonchic with help from Dezert1r | ||||
| #GTAIV.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Dezert1r | ||||
| #GalaxyClient.exe  | ||||
| #GOG_Galaxy_2.0.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #Game-TS3.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #GameLauncher.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: zero | ||||
| #GoW.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nixon | ||||
| #HITMAN3.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE-Linux.ru | ||||
| #Hades.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Half-Life2.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #HellbladeGame.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Heroes3.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Heroes3 HD.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Nixon | ||||
| #HorizonZeroDawn.exe | ||||
| #Rating=? | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Сергей 33(46) | ||||
| #hulk.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: garrett | ||||
| #Inscryption.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: vbb | ||||
| #JustCause4.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: mrm0der | ||||
| #LOF2.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Garrett-42 | ||||
| #Larry.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #LeagueClient.exe | ||||
| #RiotClientServices.exe | ||||
| @@ -76,7 +76,7 @@ check_port_for_lol () { | ||||
|     fi | ||||
|     echo "Waiting for port ${port}" | ||||
|     kill -STOP ${uxpid} | ||||
|     timeout 200m /bin/bash -c " | ||||
|     timeout 200m /usr/bin/env bash -c " | ||||
|     until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1 ; do | ||||
|     sleep 1 | ||||
|     done" | ||||
| @@ -89,7 +89,7 @@ add_in_start_portwine () { | ||||
|         zenity --question --title="Fix for LoL anti-cheat" \ | ||||
|         --text='Root rights are required to execute the command:           \n"sysctl -w abi.vsyscall32=0" and "sysctl -p"' --no-wrap | ||||
|         [ "$?" = 1 ] && exit 0 | ||||
|         pkexec /bin/bash -c 'sysctl -w abi.vsyscall32=0' | ||||
|         pkexec /usr/bin/env bash -c 'sysctl -w abi.vsyscall32=0' | ||||
|     fi | ||||
|     check_port_for_lol & | ||||
| } | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Veil | ||||
| #LifeIsStrange.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Aliway | ||||
| #Little Nightmares II.exe | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #LostEmber-Win64-Shipping.exe  | ||||
|     #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Mad Games Tycoon 2.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE-Linux.ru | ||||
| #mafiadefinitiveedition.exe | ||||
| #Rating=4 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #MassEffect.exe | ||||
|     #MassEffectConfig.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
|     #Author: xuser | ||||
|     #MassEffect2.exe  | ||||
|     #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #MassEffectConfig.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #MassEffectLauncher.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #MetroExodus.exe  | ||||
| #Rating=? | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: norz3n | ||||
| #MikuMikuDance.exe | ||||
| #Rating=3-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: kbp95 | ||||
| #speed.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: sergey | ||||
| #Nova Patcher.exe | ||||
| #NovaRO.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #OrangeCast.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #Origin.exe  | ||||
| #Rating=? | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: nixon | ||||
| #Photoshop.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #Praest.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #Quake4.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #QuickSFV.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author:  | ||||
| #RAGE2.exe  | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: | ||||
| #RDR2.exe | ||||
| #PlayRDR2.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: MrModer | ||||
| #RADMIR_LAUNCHER.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: PortWINE | ||||
| #Revival.exe  | ||||
| #Rating=5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Garrett | ||||
| #RockstarService.exe | ||||
| #Launcher.exe | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xuser | ||||
| #SR2_pc.exe | ||||
| #Rating=1-5 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: xihnik | ||||
| #Sam3.exe | ||||
| #Rating=3 | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| #!/bin/bash | ||||
| #!/usr/bin/env bash | ||||
| #Author: Veil | ||||
| #Secrets Of Grindea.exe  | ||||
| #Rating=5 | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user