forked from CastroFidel/PortWINE
Added pot files for translate
This commit is contained in:
@ -36,6 +36,37 @@ print_var () {
|
||||
}
|
||||
export -f print_var
|
||||
|
||||
change_locale () {
|
||||
if [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
|
||||
LANGUAGE=$(cat "${PORT_WINE_TMP_PATH}/PortProton_loc")
|
||||
fi
|
||||
|
||||
if [[ -z "${LANG}" ]] ; then
|
||||
export LANG=C
|
||||
LANGUAGE="en"
|
||||
else
|
||||
if [[ "${LANGUAGE}" == "ru" || "${LANGUAGE}" == "en" ]] \
|
||||
&& [[ -f "${PORT_WINE_TMP_PATH}/PortProton_loc" ]] ; then
|
||||
echo ""
|
||||
else
|
||||
[[ ! -f "${pw_yad_v13_0}" ]] && pw_yad_v13_0="yad"
|
||||
SET_LANG=$("${pw_yad_v13_0}" --title "LAUNGUAGE" --text "Select the language:" --list --radiolist \
|
||||
--column="Set:" --column "Choose language:" TRUE "ru" FALSE "en" \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" --width=300 --height=150)
|
||||
SET_LANG="$(echo "${SET_LANG}" | awk -F'|' '{print $2}')"
|
||||
echo "${SET_LANG}" > "${PORT_WINE_TMP_PATH}/PortProton_loc"
|
||||
if [[ ! -z "${SET_LANG}" ]]
|
||||
then LANGUAGE=${SET_LANG}
|
||||
else exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
export $LANGUAGE
|
||||
}
|
||||
|
||||
export -f change_locale
|
||||
|
||||
|
||||
check_variables () { [[ -z ${!1} ]] && export $1="$2" ;}
|
||||
|
||||
try_copy_file () {
|
||||
@ -267,7 +298,7 @@ export -f check_flatpak
|
||||
unpack_tar_zst () {
|
||||
set -o pipefail
|
||||
unset PW_ZSTD_PORT
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${LANGUAGE}.gif"
|
||||
if command -v zstd &>/dev/null ; then
|
||||
tar -I zstd -xhf "$1" -C "$2"
|
||||
pw_stop_progress_bar_cover_block
|
||||
@ -284,7 +315,7 @@ unpack_tar_xz () {
|
||||
tar -Jxhf "$1" -C "$2" && return 0 || return 1
|
||||
else
|
||||
set -o pipefail
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${LANGUAGE}.gif"
|
||||
tar -Jxhf "$1" -C "$2"
|
||||
pw_stop_progress_bar_cover_block
|
||||
[ "${PIPESTATUS[0]}" != 0 ] && print_error "File $1 unpacking error." && return 1 || return 0
|
||||
@ -293,7 +324,7 @@ unpack_tar_xz () {
|
||||
|
||||
unpack_tar_gz () {
|
||||
set -o pipefail
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${LANGUAGE}.gif"
|
||||
tar -xhzf "$1" -C "$2"
|
||||
pw_stop_progress_bar_cover_block
|
||||
[ "${PIPESTATUS[0]}" != 0 ] && print_error "File $1 unpacking error." && return 1 || return 0
|
||||
@ -301,7 +332,7 @@ unpack_tar_gz () {
|
||||
|
||||
unpack_tar () {
|
||||
set -o pipefail
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/unpacking_${LANGUAGE}.gif"
|
||||
tar -xhf "$1" -C "$2"
|
||||
pw_stop_progress_bar_cover_block
|
||||
[ "${PIPESTATUS[0]}" != 0 ] && print_error "File $1 unpacking error." && return 1 || return 0
|
||||
@ -352,7 +383,7 @@ pw_reinstall_pp () {
|
||||
echo ""
|
||||
exit 1
|
||||
fi
|
||||
elif ! yad_question "${port_reinstall}"
|
||||
elif ! yad_question "$(eval_gettext "Do you really want to reinstall PortProton?\nFor this, an internet connection will be required.")"
|
||||
then exit 1
|
||||
fi
|
||||
pw_clear_pfx
|
||||
@ -369,6 +400,29 @@ pw_reinstall_pp () {
|
||||
exit 0
|
||||
}
|
||||
|
||||
generate_pot () {
|
||||
LANGUAGES_LIST=(ru)
|
||||
for lang in "${LANGUAGES_LIST[@]}"
|
||||
do
|
||||
echo "${lang}"
|
||||
mkdir -p "${PORT_WINE_PATH}/data/locales/${lang}/LC_MESSAGES/"
|
||||
LANG_PO="${PORT_WINE_PATH}/data/locales/"${lang}"/LC_MESSAGES/PortProton.po"
|
||||
LANG_MO="${PORT_WINE_PATH}/data/locales/"${lang}"/LC_MESSAGES/PortProton.mo"
|
||||
TEMPLATE_POT="${PORT_WINE_PATH}/locales/PortProton.pot"
|
||||
xgettext --from-code=UTF-8 --language shell -i "${PORT_WINE_PATH}/data/scripts/start.sh" "${PORT_WINE_PATH}/data/scripts/setup.sh" "${PORT_WINE_PATH}/data/scripts/functions_helper" -o $TEMPLATE_POT
|
||||
if [ -f "$LANG_PO" ]; then
|
||||
echo "update $LANG_PO file"
|
||||
msgmerge --update $LANG_PO $TEMPLATE_POT
|
||||
else
|
||||
echo "create $LANG_PO file"
|
||||
msginit --input=$TEMPLATE_POT --locale="${lang}" --output=$LANG_PO
|
||||
fi
|
||||
msgfmt --output-file=$LANG_MO $LANG_PO
|
||||
done
|
||||
}
|
||||
|
||||
export -f generate_pot
|
||||
|
||||
check_user_conf () {
|
||||
if [ ! -f "${USER_CONF}" ]; then
|
||||
echo "#!/usr/bin/env bash" > "${USER_CONF}"
|
||||
@ -457,7 +511,7 @@ init_wine_ver () {
|
||||
if check_symlink "${WINEDIR}/share/wine/${mono_gecko_chk}" ; then
|
||||
print_info "${WINEDIR}/share/wine/${mono_gecko_chk} is symlink. OK."
|
||||
elif [[ -d "${WINEDIR}/share/wine/${mono_gecko_chk}" ]] ; then
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/loading_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover_block "${COVERS_PATH}/loading_${LANGUAGE}.gif"
|
||||
try_copy_dir "${WINEDIR}/share/wine/${mono_gecko_chk}" "${PORT_WINE_TMP_PATH}"
|
||||
try_remove_dir "${WINEDIR}/share/wine/${mono_gecko_chk}"
|
||||
try_force_link_dir "${PORT_WINE_TMP_PATH}/${mono_gecko_chk}" "${WINEDIR}"/share/wine/
|
||||
@ -1099,7 +1153,7 @@ pw_init_db () {
|
||||
fi
|
||||
done
|
||||
PORTWINE_DB_FILE="${PORT_SCRIPTS_PATH}/portwine_db"/$("${pw_yad_v13_0}" --text-align=center \
|
||||
--text "${PW_SELECTION_DB_LOC}" --borders="${YAD_BORDERS}" --form \
|
||||
--text "$(eval_gettext "More than one DB file found for the application being launched.\nSelect the required one, or delete the extra DB file before the next run.\n")" --borders="${YAD_BORDERS}" --form \
|
||||
--title "Database file selection..." --window-icon="$PW_GUI_ICON_PATH/portproton.svg" --form --separator="" \
|
||||
--field="DB FILE: :CB" "${ADD_CB_DBFILE}" 2>/dev/null)
|
||||
if [[ "$?" == "1" || "$?" == "252" ]] ; then exit 0 ; fi
|
||||
@ -1181,6 +1235,7 @@ pw_port_update () {
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
local PW_CHANGELOG_FILE="changelog_${LANGUAGE}"
|
||||
[[ ! -f "${PORT_WINE_TMP_PATH}/scripts_update_notifier" ]] && echo "1" > "${PORT_WINE_TMP_PATH}/scripts_update_notifier"
|
||||
read "scripts_update_not" < "${PORT_WINE_TMP_PATH}/scripts_update_notifier"
|
||||
if [[ "${scripts_update_not}" == "1" ]] ; then
|
||||
@ -1195,27 +1250,27 @@ pw_port_update () {
|
||||
else local pw_yad_v13_0="not_found"
|
||||
fi
|
||||
if [[ "${pw_yad_v13_0}" == "not_found" ]] ; then
|
||||
xcsd="${scripts_upd4}"
|
||||
xcsd="$(eval_gettext "UPDATING NOW")"
|
||||
else
|
||||
curl -s --list-only "${URL_FOR_CHANGELOG}/${PW_CHANGELOG_FILE}" | tee "${PORT_WINE_TMP_PATH}/curent_var_ver"
|
||||
CHANGLOG_NEWS=$(cat "${PORT_WINE_TMP_PATH}/curent_var_ver" | sed "/Scripts version ${scripts_install_ver}/,$ d" | sed '1,/---/ d' )
|
||||
xcsd=$("${pw_yad_v13_0}" --title "${scripts_upd2} v.${scripts_current_ver}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--form --separator='%%%' --width=1200 --height=600 \
|
||||
--field=":TXT" "${CHANGLOG_NEWS}" \
|
||||
--button="${scripts_upd3}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":252 \
|
||||
--button="${scripts_upd6}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":16 \
|
||||
--button="${scripts_upd5}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":18 \
|
||||
--button="${scripts_upd4}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":20 2>/dev/null)
|
||||
--button="$(eval_gettext "EXIT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":252 \
|
||||
--button="$(eval_gettext "DO NOT REMIND ME")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":16 \
|
||||
--button="$(eval_gettext "REMIND ME LATER")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":18 \
|
||||
--button="$(eval_gettext "UPDATING NOW")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":20 2>/dev/null)
|
||||
YAD_STATUS="$?"
|
||||
case "${YAD_STATUS}" in
|
||||
1|252) exit 0 ;;
|
||||
16) xcsd="${scripts_upd6}" ;;
|
||||
18) xcsd="${scripts_upd5}" ;;
|
||||
20) xcsd="${scripts_upd4}" ;;
|
||||
16) xcsd="$(eval_gettext "DO NOT REMIND ME")" ;;
|
||||
18) xcsd="$(eval_gettext "REMIND ME LATER")" ;;
|
||||
20) xcsd="$(eval_gettext "UPDATING NOW")" ;;
|
||||
esac
|
||||
fi
|
||||
case $xcsd in
|
||||
"${scripts_upd4}")
|
||||
"$(eval_gettext "UPDATING NOW")")
|
||||
echo "######################################################"
|
||||
print_info "Update scripts..."
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/PortWINE-master.tar.gz"
|
||||
@ -1239,9 +1294,9 @@ pw_port_update () {
|
||||
else
|
||||
yad_error_download && pw_port_update || exit 1
|
||||
fi ;;
|
||||
"${scripts_upd5}")
|
||||
"$(eval_gettext "REMIND ME LATER")")
|
||||
echo " " ;;
|
||||
"${scripts_upd6}")
|
||||
"$(eval_gettext "DO NOT REMIND ME")")
|
||||
echo "0" > "${PORT_WINE_TMP_PATH}/scripts_update_notifier" ;;
|
||||
esac
|
||||
fi
|
||||
@ -1388,7 +1443,7 @@ pw_find_exe () {
|
||||
OrigIFS="$IFS" && IFS=%
|
||||
PW_SET_FIND_EXE="$("${pw_yad_v13_0}" --height="300" --width="1000" --list \
|
||||
--text-align=center --window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "Create shortcut for..." \
|
||||
--text="\n${loc_gui_create_shortcut_for_exe}" --column="path to .exe file:" ${FIND_TO_GUI} 2>/dev/null)"
|
||||
--text="\n$(eval_gettext "Choose the .exe file for which you need to create a shortcut and click OK.\n")" --column="path to .exe file:" ${FIND_TO_GUI} 2>/dev/null)"
|
||||
YAD_STATUS="$?"
|
||||
print_var YAD_STATUS
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then
|
||||
@ -1890,7 +1945,7 @@ start_portwine () {
|
||||
print_info "D3D_MODULE_PATH=${D3D_MODULE_PATH}"
|
||||
else
|
||||
pw_stop_progress_bar
|
||||
yad_error "d3dadapter9.so.1.0.0 - ${loc_find_d3dadapter9_error}"
|
||||
yad_error "$(eval_gettext "d3dadapter9.so.1.0.0 - Not found in the system.\nInstall the missing package: <b>d3dadapter9</b>")"
|
||||
stop_portwine
|
||||
fi
|
||||
else
|
||||
@ -2070,7 +2125,7 @@ start_portwine () {
|
||||
pw_tray_icon
|
||||
sleep 0.5
|
||||
if [[ "${PW_CHECK_AUTOINSTAL}" != "1" ]] ; then
|
||||
pw_start_progress_bar_cover "${COVERS_PATH}/loading_${update_loc}.gif"
|
||||
pw_start_progress_bar_cover "${COVERS_PATH}/loading_${LANGUAGE}.gif"
|
||||
fi
|
||||
fi
|
||||
add_in_start_portwine
|
||||
@ -2289,11 +2344,11 @@ yad_error_download () {
|
||||
local pw_yad_v13_0="yad"
|
||||
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
|
||||
fi
|
||||
"${pw_yad_v13_0}" --text "$loc_gui_error_download" --width=400 --borders=15 --title "$loc_gui_error" \
|
||||
"${pw_yad_v13_0}" --text "$(eval_gettext "You will need to check internet connection,and\npress Repeat for repeat download")" --width=400 --borders=15 --title "$(eval_gettext "Error")" \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/download.svg" \
|
||||
--no-wrap --center --text-align=center \
|
||||
--button="$loc_skip"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
|
||||
--button="$loc_repeat"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null
|
||||
--button="$(eval_gettext "SKIP")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
|
||||
--button="$(eval_gettext "REPEAT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null
|
||||
[[ "$?" != 0 ]] && return 1 || return 0
|
||||
}
|
||||
|
||||
@ -2302,11 +2357,11 @@ yad_question () {
|
||||
local pw_yad_v13_0="yad"
|
||||
command -v "${pw_yad_v13_0}" &>/dev/null || fatal "yad not found"
|
||||
fi
|
||||
"${pw_yad_v13_0}" --text "${1}" --width=400 --borders=15 --title "${inst_set}." \
|
||||
"${pw_yad_v13_0}" --text "${1}" --width=400 --borders=15 --title "$(eval_gettext "Choices")" \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --image="$PW_GUI_ICON_PATH/question.svg" \
|
||||
--no-wrap --center --text-align=center \
|
||||
--button="$loc_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
|
||||
--button="OK"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null
|
||||
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1 \
|
||||
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 2>/dev/null
|
||||
[[ "$?" != 0 ]] && return 1 || return 0
|
||||
}
|
||||
|
||||
@ -2337,12 +2392,12 @@ pw_start_progress_bar_cover_block () {
|
||||
|
||||
pw_update_pfx_cover_gui () {
|
||||
if [[ "$1" == "winetricks" ]] ; then
|
||||
TAB_PLACE="--tab=$loc_gui_terminal!$PW_GUI_ICON_PATH/$TAB_SIZE.png --tab=$loc_gui_logo!$PW_GUI_ICON_PATH/$TAB_SIZE.png"
|
||||
TAB_PLACE="--tab=$(eval_gettext "TERMINAL")!$PW_GUI_ICON_PATH/$TAB_SIZE.png --tab=$(eval_gettext "LOGO")!$PW_GUI_ICON_PATH/$TAB_SIZE.png"
|
||||
TAB_N1=2
|
||||
TAB_N2=1
|
||||
YAD_UNDECORATED=""
|
||||
else
|
||||
TAB_PLACE="--tab=$loc_gui_logo!$PW_GUI_ICON_PATH/$TAB_SIZE.png --tab=$loc_gui_terminal!$PW_GUI_ICON_PATH/$TAB_SIZE.png"
|
||||
TAB_PLACE="--tab=$(eval_gettext "LOGO")!$PW_GUI_ICON_PATH/$TAB_SIZE.png --tab=$(eval_gettext "TERMINAL")!$PW_GUI_ICON_PATH/$TAB_SIZE.png"
|
||||
TAB_N1=1
|
||||
TAB_N2=2
|
||||
YAD_UNDECORATED="--undecorated --center"
|
||||
@ -2350,7 +2405,7 @@ pw_update_pfx_cover_gui () {
|
||||
|
||||
if ! check_start_from_steam && ! pgrep -a yad | grep "yad_v13_0 --notebook --key=$PW_KEY_PROGRESS_BAR_UP" &>/dev/null ; then
|
||||
PW_KEY_PROGRESS_BAR_UP=$RANDOM
|
||||
PW_GIF_FILE="${COVERS_PATH}/update_prefix_${update_loc}.gif"
|
||||
PW_GIF_FILE="${COVERS_PATH}/update_prefix_${LANGUAGE}.gif"
|
||||
PW_GIF_SIZE_X=$(file "${PW_GIF_FILE}" | awk '{print $7 + 20}')
|
||||
PW_GIF_SIZE_Y=$(file "${PW_GIF_FILE}" | awk '{print $9 + 60}')
|
||||
echo "UPDATE PREFIX..." > "${PORT_WINE_TMP_PATH}/update_pfx_log"
|
||||
@ -2427,7 +2482,8 @@ pw_stop_progress_bar_cover_block () {
|
||||
export -f pw_stop_progress_bar_cover_block
|
||||
|
||||
open_changelog () {
|
||||
"${pw_yad_v13_0}" --title="$loc_gui_changelog" --no-buttons --text-align=center \
|
||||
local PW_CHANGELOG_FILE="changelog_${LANGUAGE}"
|
||||
"${pw_yad_v13_0}" --title="$(eval_gettext "CHANGELOG")" --no-buttons --text-align=center \
|
||||
--text-info --show-uri --wrap --width=1200 --height=700 --uri-color=red \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--filename="${PORT_WINE_PATH}/data/${PW_CHANGELOG_FILE}" &>/dev/null
|
||||
@ -2471,10 +2527,10 @@ pw_tray_icon () {
|
||||
--command="bash -c tray_icon_click" \
|
||||
--tooltip="PortProton" \
|
||||
--icon-size=32 --menu="| \
|
||||
${loc_tray_winefile}!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/wine_file.svg"|| \
|
||||
${loc_tray_tascmng}!bash -c pw_tray_taskmgr!"$PW_GUI_ICON_PATH/wine_system.svg"|| \
|
||||
${loc_tray_cangelog}!bash -c open_changelog!"$PW_GUI_ICON_PATH/history.svg"|| \
|
||||
${loc_tray_force_exit} !bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/close.svg"||" 2>/dev/null &
|
||||
$(eval_gettext "WINEFILE")!bash -c pw_tray_winefile!"$PW_GUI_ICON_PATH/wine_file.svg"|| \
|
||||
$(eval_gettext "TASKMGR")!bash -c pw_tray_taskmgr!"$PW_GUI_ICON_PATH/wine_system.svg"|| \
|
||||
$(eval_gettext "CHANGELOG")!bash -c open_changelog!"$PW_GUI_ICON_PATH/history.svg"|| \
|
||||
$(eval_gettext "FORCE EXIT") !bash -c tray_icon_click_exit!"$PW_GUI_ICON_PATH/close.svg"||" 2>/dev/null &
|
||||
|
||||
return 0
|
||||
}
|
||||
@ -2508,6 +2564,55 @@ pw_gui_for_edit_db () {
|
||||
fi
|
||||
|
||||
unset ADD_CHK_BOX_EDIT_DB
|
||||
|
||||
local ENABLE_VKBASALT_INFO=$(eval_gettext 'Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)')
|
||||
local PW_NO_ESYNC_INFO=$(eval_gettext 'Do not use in-process synchronization primitives based on eventfd. (It is recommended not to change the value.)')
|
||||
local PW_NO_FSYNC_INFO=$(eval_gettext 'Do not use futex-based in-process synchronization primitives. (Automatically disabled on systems without FUTEX_WAIT_MULTIPLE support) (It is recommended not to change the value)')
|
||||
local PW_USE_RAY_TRACING_INFO=$(eval_gettext 'Enable vkd3d support - Ray Tracing')
|
||||
local PW_FIX_VIDEO_IN_GAME_INFO=$(eval_gettext 'Required for video playback in some games so that it is not distorted (usually colored pink)')
|
||||
local PW_VULKAN_NO_ASYNC_INFO=$(eval_gettext 'Disable asynchronous calls for VULKAN and DXVK modes')
|
||||
local PW_USE_NVAPI_AND_DLSS_INFO=$(eval_gettext 'Enable DLSS on supported NVIDIA graphics cards')
|
||||
local PW_OLD_GL_STRING_INFO=$(eval_gettext 'Forced use of older versions of OpenGL')
|
||||
local PW_HIDE_NVIDIA_GPU_INFO=$(eval_gettext 'Disguise all features used for NVIDIA graphics cards')
|
||||
local PW_FORCE_USE_VSYNC_INFO=$(eval_gettext 'Forced activation of vertical sync')
|
||||
local PW_VIRTUAL_DESKTOP_INFO=$(eval_gettext 'Enable the application to run in the WINE virtual desktop')
|
||||
local PW_USE_TERMINAL_INFO=$(eval_gettext 'Run the application in the terminal')
|
||||
local PW_HEAP_DELAY_FREE_INFO=$(eval_gettext 'Include a delay in releasing some memory to bypass errors associated with using the application after the memory is released')
|
||||
local PW_NO_WRITE_WATCH_INFO=$(eval_gettext 'A very dangerous way to hack the memory write timer in ntdll. This improves the performance of some very specific games. (It is recommended not to change the value.)')
|
||||
local PW_GUI_DISABLED_CS_INFO=$(eval_gettext 'Disable the window for selecting startup modes and WINE versions')
|
||||
local PW_USE_GSTREAMER_INFO=$(eval_gettext 'Use Gstreamer to output clips in games (WMF support)')
|
||||
local PW_FORCE_LARGE_ADDRESS_AWARE_INFO=$(eval_gettext 'Increases RAM usage limits for 32-bit applications from two to four gigabytes')
|
||||
local PW_USE_RUNTIME_INFO=$(eval_gettext 'Use container launch mode (It is recommended not to change the value)')
|
||||
local PW_MANGOHUD_INFO=$(eval_gettext 'Using FPS and system load monitoring (Turns on and off by the key combination - right Shift + F12)')
|
||||
local PW_USE_GAMEMODE_INFO=$(eval_gettext 'Using automatic system optimization to improve performance in games (provided the gamemode package is installed on the system)')
|
||||
local PW_USE_WINE_DXGI_INFO=$(eval_gettext 'Forced use of built-in DXGI library (in rare cases it solves problems with DX12 games)')
|
||||
local PW_MANGOHUD_USER_CONF_INFO=$(eval_gettext 'Forced use of MANGOHUD system settings (GOverlay, etc.)')
|
||||
local PW_VKBASALT_USER_CONF_INFO=$(eval_gettext 'Forced use of VKBASALT system settings (GOverlay, etc.)')
|
||||
local PW_USE_D3D_EXTRAS_INFO=$(eval_gettext 'Enable forced use of third-party DirectX libraries')
|
||||
local PW_USE_WINDOWS_7_INFO=$(eval_gettext 'Change the version of WINDOWS 10 to WINDOWS 7 in the prefix')
|
||||
local PW_USE_SHADER_CACHE_INFO=$(eval_gettext 'Use WINE shader caching (disable only if there are microfreezes in the game)')
|
||||
local PW_WINE_FULLSCREEN_FSR_INFO=$(eval_gettext 'Works while using any version of ProtonGE in full screen mode at a resolution below the standard screen')
|
||||
local PW_USE_FAKE_DLSS_INFO=$(eval_gettext 'Enable DLSS translator in FSR 2 in DirectX 12 games (CyberFSR2)')
|
||||
local PW_USE_FAKE_DLSS_3_INFO=$(eval_gettext 'Enable DLSS translator in FSR 3 in DirectX 12 games (Experimental project dlssg-to-fsr3)')
|
||||
local PW_USE_EAC_AND_BE_INFO=$(eval_gettext 'Enable Easy Anti-Cheat and BattlEye Anti-Cheat runtimes (required if game used this anti-cheats)')
|
||||
local PW_REDUCE_PULSE_LATENCY_INFO=$(eval_gettext 'Reduce pulseaudio latency to fix intermittent sound')
|
||||
local PW_USE_US_LAYOUT_INFO=$(eval_gettext 'Forced use of the us layout (useful for games in which the control works correctly only on the us layout)')
|
||||
local PW_RESTORE_RESOLUTION_INFO=$(eval_gettext 'Remember the screen resolution when starting the game and return it when closing (useful for games that change the screen resolution when closing)')
|
||||
local PW_USE_SYSTEM_VK_LAYERS_INFO=$(eval_gettext 'Use system mangohud, vkBasalt, obs-vkcapture and other applications using vulkan layers')
|
||||
local PW_USE_OBS_VKCAPTURE_INFO=$(eval_gettext 'Enable the ability to write to OBS Studio using obs-vkcapture (ATTENTION: the forced use of system mangohud, vkBasalt, obs-vkcapture and other applications using vulkan layers will be enabled)')
|
||||
local PW_USE_GALLIUM_ZINK_INFO=$(eval_gettext 'Use the zink driver (OpenGL on top of Vulkan), allows you to use vkBasalt in OpenGL games (ATTENTION: vulkan support is required, wined3d (opengl) is used instead of dxvk, suitable for games on OpenGL and older versions of DirectX, artifacts are possible on newer versions of DirectX)')
|
||||
local PW_DISABLE_COMPOSITING_INFO=$(eval_gettext 'Disable desktop compositing (effects). It often improves performance.')
|
||||
local PW_USE_GAMESCOPE_INFO=$(eval_gettext "
|
||||
<b>Super + F :</b> Toggle fullscreen
|
||||
<b>Super + N :</b> Toggle nearest neighbour filtering
|
||||
<b>Super + U :</b> Toggle FSR upscaling
|
||||
<b>Super + Y :</b> Toggle NIS upscaling
|
||||
<b>Super + I :</b> Increase FSR sharpness by 1
|
||||
<b>Super + O :</b> Decrease FSR sharpness by 1
|
||||
<b>Super + S :</b> Take screenshot (currently goes to /tmp/gamescope_DATE.png)
|
||||
<b>Super + G :</b> Toggle keyboard grab
|
||||
<b>Super + C :</b> Update clipboard")
|
||||
|
||||
edit_db_field_add () {
|
||||
for int_to_boole in $@ ; do
|
||||
if [ "${!int_to_boole}" == "1" ]
|
||||
@ -2533,25 +2638,35 @@ pw_gui_for_edit_db () {
|
||||
esac
|
||||
|
||||
"${pw_yad_v13_0}" --plug=$KEY_EDIT_DB_GUI --tabnum="2" --form --separator="%" --columns=1 --scroll \
|
||||
--field="${loc_gui_ver_windows}!${loc_gui_ver_windows_help} :CB" "${ADD_WINVER_EDIT_DB}" \
|
||||
--field="${loc_gui_aut_winetricks}!${loc_gui_aut_winetricks_help} :CBE" "${PW_DLL_INSTALL}!vcrun2019 corefonts lucida" \
|
||||
--field="${loc_gui_winedllover}!${loc_gui_winedllover_help} :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \
|
||||
--field="$(eval_gettext "Change the version of <b>WINDOWS</b> emulation")!$(eval_gettext "Changing the <b>WINDOWS</b> emulation version may be required to run older games. <b>WINDOWS</b> versions below 10 do not support new games with DirectX 12") :CB" "${ADD_WINVER_EDIT_DB}" \
|
||||
--field="$(eval_gettext "AUTOINSTALL WITH <b>WINETRICKS</b>")!$(eval_gettext "Automatically install with <b>WINETRICKS</b> additional libraries required to run the game/program. List of libraries separated by spaces") :CBE" "${PW_DLL_INSTALL}!vcrun2019 corefonts lucida" \
|
||||
--field="$(eval_gettext "Forced to use/disable libraries")!$(eval_gettext "Forced to use/disable the library only for the given application. (There are examples in the drop-down list)") :CBE" "${WINEDLLOVERRIDES}!libglesv2=!d3dx9_36,d3dx9_42=n,b;mfc120=b,n" \
|
||||
--field=":LBL" "" \
|
||||
--field="${loc_gui_arg_exe}!${loc_gui_arg_exe_help} :CBE" "\\${LAUNCH_PARAMETERS[@]}!-dx11 -skipintro 1" \
|
||||
--field="$(eval_gettext "ADD ARGUMENTS FOR .EXE FILE")!$(eval_gettext "Adding an argument after the <b>.exe</b> file, just like you would add an argument in a shortcut on a <b>WINDOWS </b> system") :CBE" "\\${LAUNCH_PARAMETERS[@]}!-dx11 -skipintro 1" \
|
||||
--field=":LBL" "" \
|
||||
--field="${loc_gui_cpu_limit}!${loc_gui_cpu_limit_help} :CB" "${CPU_LIMIT_VAR}!disabled!${GET_LOGICAL_CORE}" \
|
||||
--field="${loc_gui_gpu_select}!${loc_gui_gpu_select_help} :CB" "${GPU_VAR}!disabled!${GET_GPU_NAMES}" \
|
||||
--field="${loc_gui_arg_gamescope}!${loc_gui_arg_gamescope_help} :CBE" "\\${GAMESCOPE_ARGS}!-r 60 -F fsr!" \
|
||||
--field="${loc_gui_opengl_version}!${loc_gui_opengl_version_help} :CB" "${PW_MESA_GL_VERSION_OVERRIDE}!disabled!4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3" \
|
||||
--field="$(eval_gettext "Limit the use of processor cores")!$(eval_gettext "Limiting the number of CPU cores is useful for Unity games (It is recommended to set the value equal to 8)") :CB" "${CPU_LIMIT_VAR}!disabled!${GET_LOGICAL_CORE}" \
|
||||
--field="$(eval_gettext "Choose a graphics card to run the game (in user.conf)")!$(eval_gettext "Select which video card will be used to run the game (used for all running games and programs in PortProton)") :CB" "${GPU_VAR}!disabled!${GET_GPU_NAMES}" \
|
||||
--field="$(eval_gettext "Add arguments for GAMESCOPE:")!$(eval_gettext "
|
||||
<b>-W, -H:</b> set the resolution used by gamescope. Resizing the gamescope window will update these settings. Ignored in embedded mode. If -H is specified but -W isn't, a 16:9 aspect ratio is assumed. Defaults to 1280×720.
|
||||
<b>-w, -h:</b> set the resolution used by the game. If -h is specified but -w isn't, a 16:9 aspect ratio is assumed. Defaults to the values specified in -W and -H.
|
||||
<b>-r:</b> set a frame-rate limit for the game. Specified in frames per second. Defaults to unlimited.
|
||||
<b>-o:</b> set a frame-rate limit for the game when unfocused. Specified in frames per second. Defaults to unlimited.
|
||||
<b>-F fsr:</b> use AMD FidelityFX™ Super Resolution 1.0 for upscaling.
|
||||
<b>-F nis:</b> use NVIDIA Image Scaling v1.0.3 for upscaling.
|
||||
<b>-S integer:</b> use integer scaling.
|
||||
<b>-S stretch:</b> use stretch scaling, the game will fill the window. (e.g. 4:3 to 16:9).
|
||||
<b>-b:</b> create a border-less window.
|
||||
<b>-f:</b> create a full-screen window.") :CBE" "\\${GAMESCOPE_ARGS}!-r 60 -F fsr!" \
|
||||
--field="$(eval_gettext "Forcibly select the OpenGL version for the game")!$(eval_gettext "You can select the required OpenGL version, some games require a forced Compatibility Profile (COMPAT). (Examples are in the drop-down list)") :CB" "${PW_MESA_GL_VERSION_OVERRIDE}!disabled!4.6COMPAT!4.6!4.5COMPAT!4.5!3.3COMPAT!3.3" \
|
||||
2>/dev/null 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="750" \
|
||||
--text "${loc_gui_edit_db} <b>${PORTWINE_DB}</b>\n ${loc_gui_edit_db_help}" --separator=" " \
|
||||
--text "$(eval_gettext "Change settings in database file for") <b>${PORTWINE_DB}</b>\n $(eval_gettext "<b>NOTE:</b> To display help for each item, simply hover your mouse over the text")" --separator=" " \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--button="${loc_gui_cancel}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"${loc_gui_cancel_help}":1 \
|
||||
--button="${loc_gui_reset_db}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"${loc_gui_reset_db_help}":2 \
|
||||
--button="${loc_gui_open_db}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"${loc_gui_open_db_help}":150 \
|
||||
--button="${loc_gui_save_changes}"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"${loc_gui_save_changes_help}":0 2>/dev/null
|
||||
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu.")":1 \
|
||||
--button="$(eval_gettext "RESET SETTINGS")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Restore default settings.")":2 \
|
||||
--button="$(eval_gettext "OPEN THE SETTINGS FILE")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Open the <b>.ppdb</b> settings file in a system text editor to view and change variables manually.")":150 \
|
||||
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu.")":0 2>/dev/null
|
||||
YAD_STATUS="$?"
|
||||
export SKIP_CHECK_UPDATES=1
|
||||
case "$YAD_STATUS" in
|
||||
@ -2634,7 +2749,7 @@ gui_proton_downloader () {
|
||||
if [[ "$1" == "silent" ]] && [[ -d "${PORT_WINE_PATH}/data/dist/${PW_WINE_USE}" ]] ; then
|
||||
return 0
|
||||
fi
|
||||
pw_start_progress_bar_block "$loc_gui_check_new_wine"
|
||||
pw_start_progress_bar_block "$(eval_gettext "Check new version WINE")"
|
||||
# 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"
|
||||
@ -2679,7 +2794,7 @@ gui_proton_downloader () {
|
||||
fi
|
||||
pw_stop_progress_bar
|
||||
if [[ -z "${PROTON_PW_GIT}" ]] ; then
|
||||
yad_error "$loc_gui_check_new_wine_error"
|
||||
yad_error "$(eval_gettext "Error: check wine.")"
|
||||
export SKIP_CHECK_UPDATES=1
|
||||
/usr/bin/env bash -c ${pw_full_command_line[*]} &
|
||||
exit 0
|
||||
@ -2709,15 +2824,15 @@ gui_proton_downloader () {
|
||||
try_remove_file "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set"
|
||||
|
||||
`"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=1 --list --separator="" --listen \
|
||||
--column "$loc_gui_set_new_wine" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" 2>/dev/null` &
|
||||
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_proton_pw_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_pw_set" 2>/dev/null` &
|
||||
`"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=2 --list --separator="" --listen \
|
||||
--column "$loc_gui_set_new_wine" < "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git" 1> "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set" 2>/dev/null` &
|
||||
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_wine_kron4ek_git" 1> "${PORT_WINE_TMP_PATH}/tmp_kron4ek_set" 2>/dev/null` &
|
||||
`"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=3 --list --separator="" --listen \
|
||||
--column "$loc_gui_set_new_wine" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set" 2>/dev/null` &
|
||||
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_proton_ge_git" 1> "${PORT_WINE_TMP_PATH}/tmp_proton_set" 2>/dev/null` &
|
||||
`"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=4 --list --separator="" --listen \
|
||||
--column "$loc_gui_set_new_wine" < "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git" 1> "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set" 2>/dev/null` &
|
||||
--column "$(eval_gettext "Select WINE for download:")" < "${PORT_WINE_TMP_PATH}/tmp_wine_ge_custom_git" 1> "${PORT_WINE_TMP_PATH}/tmp_ge_custom_set" 2>/dev/null` &
|
||||
`"${pw_yad_v13_0}" --plug=$KEY_WINE --tabnum=5 --list --separator="" --listen \
|
||||
--column "$loc_gui_del_wine" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" 2>/dev/null` &
|
||||
--column "$(eval_gettext "Select installed WINE for delete:")" < "${PORT_WINE_TMP_PATH}/tmp_installed_wine" 1> "${PORT_WINE_TMP_PATH}/tmp_installed_wine_set" 2>/dev/null` &
|
||||
`"${pw_yad_v13_0}" --key=$KEY_WINE --notebook --width=500 --height=600 --text-align=center --no-button \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "WINE MANAGER" --separator="" --expand \
|
||||
--tab-pos=top \
|
||||
@ -2725,9 +2840,9 @@ gui_proton_downloader () {
|
||||
--tab="WINE-KRON4EK"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="PROTON-GE"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="WINE-GE-CUSTOM"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="$loc_gui_installed_wine"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--button="$loc_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":1 \
|
||||
--button="OK"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":0 2>/dev/null`
|
||||
--tab="$(eval_gettext "INSTALLED")"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":1 \
|
||||
--button=$(eval_gettext "OK")!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":0 2>/dev/null`
|
||||
YAD_WINE_STATUS="$?"
|
||||
if [[ "$YAD_WINE_STATUS" == "1" || "$YAD_WINE_STATUS" == "252" ]] ; then
|
||||
export SKIP_CHECK_UPDATES=1
|
||||
@ -2833,6 +2948,63 @@ gui_vkBasalt () {
|
||||
FILE_VKBASALT_CONF="${PORT_WINE_PATH}/data/vkBasalt.conf"
|
||||
LIST_FX=($(grep -E '.fx$|.fxh$' "${FILE_VKBASALT_CONF}" | awk '{print $1}'))
|
||||
GET_FX_IN_FILE=(`echo ${PW_VKBASALT_EFFECTS} | sed s/"cas:"// | sed s/":"/" "/g`)
|
||||
|
||||
local PW_3DFX_INFO=$(eval_gettext 'Simulation of an old 3dfx graphics accelerator (adds horizontal stripes)')
|
||||
local PW_AdaptiveSharpen_INFO=$(eval_gettext 'Sharpness increase, can be used with CAS')
|
||||
local PW_Bloom_INFO=$(eval_gettext 'Adds glow from bright light sources in the game')
|
||||
local PW_Border_INFO=$(eval_gettext 'Cropping the image from the top and bottom (like in a movie =)')
|
||||
local PW_Cartoon_INFO=$(eval_gettext 'Strong sharpening of texture edges')
|
||||
local PW_ChromaticAberration_INFO=$(eval_gettext 'Adds chromatic aberration to an image')
|
||||
local PW_Clarity_INFO=$(eval_gettext 'Sharpening textures with slight modifications of image contrast (similar in effect to CAS)')
|
||||
local PW_ColorMatrix_INFO=$(eval_gettext 'Adding cool colors')
|
||||
local PW_Colourfulness_INFO=$(eval_gettext 'Increasing color saturation. Increasing color saturation')
|
||||
local PW_FakeHDR_INFO=$(eval_gettext 'Add fake HDR')
|
||||
local PW_FilmGrain2_INFO=$(eval_gettext 'Adding the film grain effect')
|
||||
local PW_Curves_INFO=$(eval_gettext 'Increases the contrast of the image without affecting the bright and dark areas, so that the detail in shadows and sky is not lost')
|
||||
local PW_Denoise_INFO=$(eval_gettext 'Reducing noise by blurring the image')
|
||||
local PW_Emphasize_INFO=$(eval_gettext 'Reducing the bit depth of color')
|
||||
local PW_FakeMotionBlur_INFO=$(eval_gettext 'Strong blurring of objects in motion')
|
||||
local PW_FilmicAnamorphSharpen_INFO=$(eval_gettext 'Sharpening (recommended for cartoon games)')
|
||||
local PW_FilmicPass_INFO=$(eval_gettext 'Adding cold colors')
|
||||
local PW_SMAA_INFO=$(eval_gettext 'Alternative antialiasing option (less effect, but with less consumption of GPU resources, relative to the standard SMAA)')
|
||||
local PW_GaussianBlur_INFO=$(eval_gettext 'Slight blur effect on bright objects (such as flames)')
|
||||
local PW_Glitch_INFO=$(eval_gettext 'Glitch effect')
|
||||
local PW_HighPassSharpen_INFO=$(eval_gettext 'Another method of sharpening using highpass frequencies')
|
||||
local PW_HQ4X_INFO=$(eval_gettext 'Smoothing of nearby pixels with the drawing of missing parts (in normal games the picture is blurred)')
|
||||
local PW_HSLShift_INFO=$(eval_gettext 'Advanced HSL shift (for each shade)')
|
||||
local PW_Layer_INFO=$(eval_gettext "Image overlay on the game (the image is in the $PORT_WINE_TMP_PATH/libs_v$PW_LIBS_VER/pressure-vessel/reshade/textures folder)")
|
||||
local PW_Levels_INFO=$(eval_gettext 'Increases contrast, but some detail in shadows or highlights may be lost')
|
||||
local PW_LevelsPlus_INFO=$(eval_gettext 'Same as Levels, but with less loss of detail')
|
||||
local PW_LiftGammaGain_INFO=$(eval_gettext 'Gamma correction by individual color channels: red, green and blue')
|
||||
local PW_LightDoF_INFO=$(eval_gettext 'Increases depth of field (greatly affects FPS)')
|
||||
local PW_LumaSharpen_INFO=$(eval_gettext 'Enhances image sharpness for improved detail')
|
||||
local PW_LUT_INFO=$(eval_gettext 'Image color correction')
|
||||
local PW_MagicBloom_INFO=$(eval_gettext 'Same as Bloom, but more natural')
|
||||
local PW_Monochrome_INFO=$(eval_gettext 'Converts the image into monochrome')
|
||||
local PW_MultiLUT_INFO=$(eval_gettext 'Extended version of the LUT (Hollywood loot is pre-installed)')
|
||||
local PW_MXAO_INFO=$(eval_gettext 'SSAO algorithm (Greatly affects FPS)')
|
||||
local PW_NightVision_INFO=$(eval_gettext 'Night vision effect')
|
||||
local PW_Nostalgia_INFO=$(eval_gettext 'Makes the picture look like old photos')
|
||||
local PW_PerfectPerspective_INFO=$(eval_gettext 'Fisheye effect (suitable for VR)')
|
||||
local PW_PPFX_Godrays_INFO=$(eval_gettext 'Add God rays (also called 3D light rays) effect')
|
||||
local PW_Prism_INFO=$(eval_gettext 'The prismatic lens effect')
|
||||
local PW_ReflectiveBumpMapping_INFO=$(eval_gettext 'Creates the illusion of depth in textures')
|
||||
local PW_Sepia_INFO=$(eval_gettext 'Adds a sepia effect like in old photos')
|
||||
local PW_Splitscreen_INFO=$(eval_gettext 'Splits the image into raw and processed output for comparison')
|
||||
local PW_SurfaceBlur_INFO=$(eval_gettext 'Reducing object detail without blurring contrast contours')
|
||||
local PW_Technicolor_INFO=$(eval_gettext 'Makes the picture look like films from the 1930s')
|
||||
local PW_Technicolor2_INFO=$(eval_gettext 'The updated version of Technicolor, gives a different picture by changing colors more aggressively')
|
||||
local PW_TiltShift_INFO=$(eval_gettext 'Blur on the edges of the screen to create a Tilt Shift effect')
|
||||
local PW_Tonemap_INFO=$(eval_gettext 'Changes the saturation of the picture')
|
||||
local PW_TriDither_INFO=$(eval_gettext 'Reduces the amount of noise')
|
||||
local PW_UIDetect_INFO=$(eval_gettext 'Automatically switches effects depending on the visibility of the UI')
|
||||
local PW_Vibrance_INFO=$(eval_gettext 'Saturates faded colors without touching the bright ones')
|
||||
local PW_Vignette_INFO=$(eval_gettext 'Adds a vignette to the image')
|
||||
local PW_AspectRatio_INFO=$(eval_gettext 'An effect for adjusting the aspect ratio (for games that do not support widescreen monitors)')
|
||||
local PW_UIMask_INFO=$(eval_gettext 'Part of the overall ReShade shader . It uses a mask with gradients from black to white to determine where the effects will be applied')
|
||||
local PW_StageDepth_INFO=$(eval_gettext 'Allows you to add new elements to the 3d space inside the game and apply custom textures')
|
||||
local PW_PPFX_Bloom_INFO=$(eval_gettext 'Adds a Bloom effect')
|
||||
|
||||
unset ADD_GUI_FX GUI_FX_RESULT
|
||||
for add_list_fx in ${LIST_FX[@]} ; do
|
||||
PW_VKBASALT_GUI_HELP="PW_${add_list_fx}_INFO"
|
||||
@ -2857,19 +3029,19 @@ gui_vkBasalt () {
|
||||
export old_IFS=$IFS
|
||||
export IFS="%"
|
||||
"${pw_yad_v13_0}" --plug=$KEY_FX_GUI --tabnum="1" --form --columns=4 --separator=" " \
|
||||
--text-align=center --text="$loc_gui_vkbasalt_top" \
|
||||
--text-align=center --text="$(eval_gettext "vkBasalt settings for adding effects to games running under Vulkan. (The <b>HOME</b> key disables vkbasalt)\n<b>NOTE:</b> To display help for each item, simply hover over the text\n")" \
|
||||
${ADD_GUI_FX} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_basalt_set" 2>/dev/null &
|
||||
export IFS="${old_IFS}"
|
||||
|
||||
"${pw_yad_v13_0}" --plug=$KEY_FX_GUI --tabnum="2" --separator=" " --form \
|
||||
--field="AMD FidelityFX - Contrast Adaptive Sharpening"!"$loc_gui_ffx_cas":SCL "${VKBASALT_FFX_CAS_GUI}" \
|
||||
--field="AMD FidelityFX - Contrast Adaptive Sharpening"!"$(eval_gettext "AMD FidelityFX - CAS is designed to dramatically improve texture sharpness without additional modification settings for games, with minimal loss of performance. (For older games it is recommended to set value = 100)")":SCL "${VKBASALT_FFX_CAS_GUI}" \
|
||||
1> "${PORT_WINE_TMP_PATH}/tmp_yad_cas_set" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --paned --key="$KEY_FX_GUI" --height="625" --title="vkBasalt" --center \
|
||||
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--button="$loc_gui_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_cancel_help":1 \
|
||||
--button="$loc_gui_disabled_vkbas"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_disabled_vkbas_help":180 \
|
||||
--button="$loc_gui_save_changes"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_save_changes_help":182 2>/dev/null
|
||||
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu.")":1 \
|
||||
--button="$(eval_gettext "DISABLE VKBASALT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable vkBasalt and go to the previous menu.")":180 \
|
||||
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu.")":182 2>/dev/null
|
||||
YAD_VKBASALT_STATUS="$?"
|
||||
case "${YAD_VKBASALT_STATUS}" in
|
||||
1|252)
|
||||
@ -2922,6 +3094,61 @@ gui_MangoHud () {
|
||||
time version vkbasalt vram vulkan_driver wine
|
||||
)
|
||||
|
||||
local PW_MH_arch_INFO=$(eval_gettext 'Show if the application is 32- or 64-bit')
|
||||
local PW_MH_battery_INFO=$(eval_gettext 'Display current battery percent and energy consumption')
|
||||
local PW_MH_battery_icon_INFO=$(eval_gettext 'Display battery icon instead of percent')
|
||||
local PW_MH_battery_time_INFO=$(eval_gettext 'Display remaining time for battery option')
|
||||
local PW_MH_battery_watt_INFO=$(eval_gettext 'Display wattage for the battery option')
|
||||
local PW_MH_core_bars_INFO=$(eval_gettext 'Change the display of core_load from numbers to vertical bars')
|
||||
local PW_MH_core_load_INFO=$(eval_gettext 'Display load & frequency per core')
|
||||
local PW_MH_cpu_mhz_INFO=$(eval_gettext 'Show the CPUs current MHz')
|
||||
local PW_MH_cpu_power_INFO=$(eval_gettext 'Display CPU draw in watts')
|
||||
local PW_MH_cpu_temp_INFO=$(eval_gettext 'Display current CPU temperature')
|
||||
local PW_MH_device_battery_icon_INFO=$(eval_gettext 'Display wirless device battery icon.')
|
||||
local PW_MH_engine_short_names_INFO=$(eval_gettext 'Display a short version of the used engine (e.g. OGL instead of OpenGL)')
|
||||
local PW_MH_engine_version_INFO=$(eval_gettext 'Display OpenGL or vulkan and vulkan-based render engines version')
|
||||
local PW_MH_exec_name_INFO=$(eval_gettext 'Display current exec name')
|
||||
local PW_MH_fcat_INFO=$(eval_gettext 'Enables frame capture analysis')
|
||||
local PW_MH_fps_metrics_INFO=$(eval_gettext 'Takes a list of decimal values or the value avg, e.g avg,0.001')
|
||||
local PW_MH_frame_count_INFO=$(eval_gettext 'Display frame count')
|
||||
local PW_MH_full_INFO=$(eval_gettext 'Enable most of the toggleable parameters (currently excludes histogram)')
|
||||
local PW_MH_gamemode_INFO=$(eval_gettext 'Show if GameMode is on')
|
||||
local PW_MH_gpu_core_clock_INFO=$(eval_gettext 'Display GPU core frequency')
|
||||
local PW_MH_gpu_fan_INFO=$(eval_gettext 'GPU fan in rpm on AMD, FAN in percent on NVIDIA')
|
||||
local PW_MH_gpu_junction_temp_INFO=$(eval_gettext 'Display current GPU temperature')
|
||||
local PW_MH_gpu_mem_clock_INFO=$(eval_gettext 'Display GPU memory frequency')
|
||||
local PW_MH_gpu_mem_temp_INFO=$(eval_gettext 'Display current GPU temperature')
|
||||
local PW_MH_gpu_name_INFO=$(eval_gettext 'Display GPU name from pci.ids')
|
||||
local PW_MH_gpu_power_INFO=$(eval_gettext 'Display GPU draw in watts')
|
||||
local PW_MH_gpu_temp_INFO=$(eval_gettext 'Display current GPU temperature')
|
||||
local PW_MH_gpu_voltage_INFO=$(eval_gettext 'Display GPU voltage (only works on AMD GPUs)')
|
||||
local PW_MH_histogram_INFO=$(eval_gettext 'Change FPS graph to histogram')
|
||||
local PW_MH_horizontal_INFO=$(eval_gettext 'Display Mangohud in a horizontal position')
|
||||
local PW_MH_horizontal_stretch_INFO=$(eval_gettext 'Stretches the background to the screens width in horizontal mode')
|
||||
local PW_MH_hud_compact_INFO=$(eval_gettext 'Display compact version of MangoHud')
|
||||
local PW_MH_hud_no_margin_INFO=$(eval_gettext 'Remove margins around MangoHud')
|
||||
local PW_MH_io_read_INFO=$(eval_gettext 'Show non-cached IO read, in MiB/s')
|
||||
local PW_MH_io_write_INFO=$(eval_gettext 'Show non-cached IO write, in MiB/s')
|
||||
local PW_MH_no_display_INFO=$(eval_gettext 'Hide the HUD by default')
|
||||
local PW_MH_no_small_font_INFO=$(eval_gettext 'Use primary font size for smaller text like units')
|
||||
local PW_MH_procmem_INFO=$(eval_gettext 'Displays process memory usage: resident procmem (resident) also toggles others off if disabled')
|
||||
local PW_MH_procmem_shared_INFO=$(eval_gettext 'Displays process memory usage: shared')
|
||||
local PW_MH_procmem_virt_INFO=$(eval_gettext 'Displays process memory usage: virtual')
|
||||
local PW_MH_ram_INFO=$(eval_gettext 'Display system RAM usage')
|
||||
local PW_MH_resolution_INFO=$(eval_gettext 'Display the current resolution')
|
||||
local PW_MH_show_fps_limit_INFO=$(eval_gettext 'Display the current FPS limit')
|
||||
local PW_MH_swap_INFO=$(eval_gettext 'Display swap space usage next to system RAM usage')
|
||||
local PW_MH_temp_fahrenheit_INFO=$(eval_gettext 'Show temperature in Fahrenheit')
|
||||
local PW_MH_throttling_status_INFO=$(eval_gettext 'Show if GPU is throttling based on Power, current, temp or "other" (Only shows if throttling is currently happening). Currently disabled by default for Nvidia as it causes lag on 3000 series')
|
||||
local PW_MH_throttling_status_graph_INFO=$(eval_gettext 'Same as throttling_status but displays throttling in the frametime graph and only power and temp throttling')
|
||||
local PW_MH_time_INFO=$(eval_gettext 'Display local time')
|
||||
local PW_MH_version_INFO=$(eval_gettext 'Show current MangoHud version')
|
||||
local PW_MH_vkbasalt_INFO=$(eval_gettext 'Show if vkBasalt is on')
|
||||
local PW_MH_vram_INFO=$(eval_gettext 'Display system VRAM usage')
|
||||
local PW_MH_vulkan_driver_INFO=$(eval_gettext 'Display used Vulkan driver (radv/amdgpu-pro/amdvlk)')
|
||||
local PW_MH_frametime=$(eval_gettext 'Display frametime next to FPS text')
|
||||
local PW_MH_wine_INFO=$(eval_gettext 'Show current Wine or Proton version in use')
|
||||
|
||||
unset ADD_GUI_MH GUI_MH_RESULT
|
||||
|
||||
GET_REFRESH_RATE="30!45!60!75!120!144!165!240"
|
||||
@ -2952,19 +3179,19 @@ gui_MangoHud () {
|
||||
export old_IFS=$IFS
|
||||
export IFS="%"
|
||||
"${pw_yad_v13_0}" --plug=$KEY_MH_GUI --tabnum="1" --form --columns=4 --separator=" " \
|
||||
--text-align=center --text="$loc_gui_mh_top" \
|
||||
--text-align=center --text="$(eval_gettext "MangoHud settings (Keys <b>R_SHIFT + F12</b> disable MangoHud)\n<b>note:</b> To display help for each item, just hover the mouse cursor over the text.\n")" \
|
||||
${ADD_GUI_MH} 1> "${PORT_WINE_TMP_PATH}/tmp_yad_mh_set" 2>/dev/null &
|
||||
export IFS="${old_IFS}"
|
||||
|
||||
"${pw_yad_v13_0}" --plug=$KEY_MH_GUI --tabnum="2" --separator=" " --form \
|
||||
--field="${loc_gui_mango_fps}!${loc_gui_mango_fps_help} :CB" "${FPS_LIMIT_VAR}!disabled!${GET_REFRESH_RATE}" \
|
||||
--field="$(eval_gettext "MANGOHUD FPS LIMIT")!$(eval_gettext "Enabling FPS limits using MANGOHUD built into PortProton") :CB" "${FPS_LIMIT_VAR}!disabled!${GET_REFRESH_RATE}" \
|
||||
1> "${PORT_WINE_TMP_PATH}/tmp_yad_mh_fps_limit" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --paned --key="$KEY_MH_GUI" --height="575" --title="MangoHud" --center \
|
||||
--separator=" " --window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--button="$loc_gui_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_cancel_help":1 \
|
||||
--button="$loc_gui_disabled_mh"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_disabled_mh_help":182 \
|
||||
--button="$loc_gui_save_changes"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$loc_gui_save_changes_help":184 2>/dev/null
|
||||
--button="$(eval_gettext "CANCEL THE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Cancel the current changes and return to the previous menu.")":1 \
|
||||
--button="$(eval_gettext "DISABLE MANGOHUD")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Disable MangoHud and go to the previous menu.")":182 \
|
||||
--button="$(eval_gettext "SAVE CHANGES")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"$(eval_gettext "Save the current changes, and go to the previous menu.")":184 2>/dev/null
|
||||
YAD_MANGOHUD_STATUS="$?"
|
||||
|
||||
case "${YAD_MANGOHUD_STATUS}" in
|
||||
@ -3033,27 +3260,27 @@ portwine_create_shortcut () {
|
||||
|
||||
if [[ "$1" == "block_name" ]] ; then
|
||||
export name_desktop="${PORTPROTON_NAME}"
|
||||
OUTPUT=$("${pw_yad}" --title="${inst_set}." --form \
|
||||
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--image "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" \
|
||||
--field="${sc_info}":LBL "" \
|
||||
--field="$(eval_gettext "The shortcut will be created in the PortProton directory.")":LBL "" \
|
||||
--field=" ${name_desktop}":LBL "" \
|
||||
--field=" ${sc_menu_desktop}":CHK "TRUE" \
|
||||
--field=" ${sc_desktop_desktop}":CHK "TRUE" \
|
||||
--field=" ${sc_add_in_steam}":CHK "FALSE" \
|
||||
--button="$loc_gui_create_shortcut"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0)
|
||||
--field=" $(eval_gettext "Add shortcut to MENU -> GAMES")":CHK "TRUE" \
|
||||
--field=" $(eval_gettext "Add shortcut to Desktop")":CHK "TRUE" \
|
||||
--field=" $(eval_gettext "Add shortcut to STEAM library")":CHK "FALSE" \
|
||||
--button="$(eval_gettext "CREATE SHORTCUT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0)
|
||||
PW_YAD_OUT=$?
|
||||
else
|
||||
export name_desktop="${PORTPROTON_NAME}"
|
||||
OUTPUT=$("${pw_yad}" --title="${inst_set}." --form \
|
||||
OUTPUT=$("${pw_yad}" --title="$(eval_gettext "Choices")" --form \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--image "${PORT_WINE_PATH}/data/img/${PORTPROTON_NAME}.png" \
|
||||
--field="${sc_info}":LBL "" \
|
||||
--field="${sc_name}:" "${name_desktop}" \
|
||||
--field=" ${sc_menu_desktop}":CHK "TRUE" \
|
||||
--field=" ${sc_desktop_desktop}":CHK "TRUE" \
|
||||
--field=" ${sc_add_in_steam}":CHK "FALSE" \
|
||||
--button="$loc_gui_create_shortcut"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0)
|
||||
--field="$(eval_gettext "The shortcut will be created in the PortProton directory.")":LBL "" \
|
||||
--field="$(eval_gettext "Name")" "${name_desktop}" \
|
||||
--field=" $(eval_gettext "Add shortcut to MENU -> GAMES")":CHK "TRUE" \
|
||||
--field=" $(eval_gettext "Add shortcut to Desktop")":CHK "TRUE" \
|
||||
--field=" $(eval_gettext "Add shortcut to STEAM library")":CHK "FALSE" \
|
||||
--button="$(eval_gettext "CREATE SHORTCUT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0)
|
||||
PW_YAD_OUT=$?
|
||||
fi
|
||||
|
||||
@ -3118,7 +3345,7 @@ portwine_create_shortcut () {
|
||||
"${PORT_SCRIPTS_PATH}/add_in_steam.sh"
|
||||
done
|
||||
if [[ "${PW_SKIP_RESTART_STEAM}" != 1 ]] && pgrep -i steam &>/dev/null ; then
|
||||
if yad_question "$sc_restert_steam" ; then
|
||||
if yad_question "$(eval_gettext "For adding shortcut to STEAM, needed restart.\n\nRestart STEAM now?")" ; then
|
||||
pw_start_progress_bar_block "Restarting STEAM... Please wait."
|
||||
kill -s SIGTERM $(pgrep -a steam) &>/dev/null
|
||||
while pgrep -i steam &>/dev/null ; do
|
||||
@ -3151,12 +3378,12 @@ portwine_delete_shortcut () {
|
||||
}
|
||||
|
||||
portwine_missing_shortcut () {
|
||||
"${pw_yad}" --title="${loc_gui_error}." --form \
|
||||
"${pw_yad}" --title="$(eval_gettext "Error")" --form \
|
||||
--window-icon "$PW_GUI_ICON_PATH/portproton.svg" \
|
||||
--image "$PW_GUI_ICON_PATH/error.svg" \
|
||||
--text "$loc_gui_missing_shortcut" \
|
||||
--button="$loc_gui_delete_shortcut"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 \
|
||||
--button="$loc_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1
|
||||
--text "$(eval_gettext "\nCould not find the file:\n${portwine_exe}\n\nATTENTION:\nIf you forgot to mount the disk with the running application, click CANCEL!")" \
|
||||
--button="$(eval_gettext "DELETE SHORTCUT")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 \
|
||||
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":1
|
||||
if [ $? -eq "0" ] ; then
|
||||
portwine_delete_shortcut
|
||||
fi
|
||||
@ -3170,7 +3397,7 @@ pw_prefix_manager () {
|
||||
touch "${PORT_WINE_PATH}/data/prefixes/${PW_PREFIX_NAME}/winetricks.log"
|
||||
fi
|
||||
|
||||
pw_start_progress_bar_block "$loc_start_pfx_manager $PW_PREFIX_NAME"
|
||||
pw_start_progress_bar_block "$(eval_gettext "Starting prefix manager:") $PW_PREFIX_NAME"
|
||||
"${PORT_WINE_TMP_PATH}/winetricks" dlls list | awk -F'(' '{print $1}' 1> "${PORT_WINE_TMP_PATH}/dll_list"
|
||||
"${PORT_WINE_TMP_PATH}/winetricks" fonts list | awk -F'(' '{print $1}' 1> "${PORT_WINE_TMP_PATH}/fonts_list"
|
||||
"${PORT_WINE_TMP_PATH}/winetricks" settings list | awk -F'(' '{print $1}' 1> "${PORT_WINE_TMP_PATH}/settings_list"
|
||||
@ -3213,26 +3440,26 @@ pw_prefix_manager () {
|
||||
|
||||
KEY_EDIT_MANAGER_GUI=$RANDOM
|
||||
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=1 --list --checklist \
|
||||
--text="${loc_prefix_manager_comp} <b>\"${PW_PREFIX_NAME}\"</b>, ${loc_prefix_manager_wine} <b>\"${PW_WINE_USE}\"</b>" \
|
||||
--text="$(eval_gettext 'Select components to install in prefix:') <b>\"${PW_PREFIX_NAME}\"</b>, $(eval_gettext 'using wine:') <b>\"${PW_WINE_USE}\"</b>" \
|
||||
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/dll_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=2 --list --checklist \
|
||||
--text="${loc_prefix_manager_font} <b>\"${PW_PREFIX_NAME}\"</b>, ${loc_prefix_manager_wine} <b>\"${PW_WINE_USE}\"</b>" \
|
||||
--text="$(eval_gettext 'Select fonts to install in prefix:') <b>\"${PW_PREFIX_NAME}\"</b>, $(eval_gettext 'using wine:') <b>\"${PW_WINE_USE}\"</b>" \
|
||||
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/fonts_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --plug=$KEY_EDIT_MANAGER_GUI --tabnum=3 --list --checklist \
|
||||
--text="${loc_prefix_manager_conf} <b>\"${PW_PREFIX_NAME}\"</b>" \
|
||||
--text="$(eval_gettext 'Change config for prefix:') <b>\"${PW_PREFIX_NAME}\"</b>" \
|
||||
--column=set --column=dll --column=info < "${PORT_WINE_TMP_PATH}/settings_list_tmp" 1>> "${PORT_WINE_TMP_PATH}/to_winetricks" 2>/dev/null &
|
||||
|
||||
"${pw_yad_v13_0}" --key=$KEY_EDIT_MANAGER_GUI --notebook \
|
||||
--width=900 --height=800 --expand \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$loc_pm" \
|
||||
--button="$loc_cancel"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":1 \
|
||||
--button="OK"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":0 \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext 'PREFIX MANAGER')" \
|
||||
--button="$(eval_gettext "CANCEL")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":1 \
|
||||
--button="$(eval_gettext "OK")"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png"!"":0 \
|
||||
--tab-pos=bottom \
|
||||
--tab="$loc_pm_dlls"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="$loc_pm_fonts"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="$loc_pm_settings"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" 2>/dev/null
|
||||
--tab="$(eval_gettext 'DLLS')"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="$(eval_gettext 'FONTS')"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" \
|
||||
--tab="$(eval_gettext 'SETTINGS')"!"$PW_GUI_ICON_PATH/$TAB_SIZE.png"!"" 2>/dev/null
|
||||
YAD_STATUS="$?"
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then
|
||||
print_info "Nothing to do. Restarting PortProton..."
|
||||
@ -3278,10 +3505,10 @@ portwine_start_debug () {
|
||||
kill_portwine
|
||||
export PW_LOG=1
|
||||
if [[ -z "$VULKAN_DRIVER_NAME" ]] || [[ "$VULKAN_DRIVER_NAME" == "llvmpipe" ]] ; then
|
||||
yad_info "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!"
|
||||
yad_info "$(eval_gettext "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!")"
|
||||
fi
|
||||
echo "${port_deb1}" > "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "${port_deb2}" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "$(eval_gettext "PortProton was launched in creation mode PortProton.log and it is successfully stored in the root directory of the port")" > "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "$(eval_gettext "To diagnose the problem, copy ALL of the log to discord server: https://discord.gg/FTaheP99wE")" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "-------------------------------------------------------------" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "PortWINE version:" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
read install_ver < "${PORT_WINE_TMP_PATH}/PortProton_ver"
|
||||
@ -3305,7 +3532,7 @@ portwine_start_debug () {
|
||||
echo $(ldd --version | grep -m1 ldd | awk '{print $NF}') >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "--------------------------------------------------------" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
if [[ "${PW_VULKAN_USE}" = "0" ]] ; then
|
||||
echo "PW_VULKAN_USE=${PW_VULKAN_USE} - DX9-11 to ${loc_gui_open_gl}" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
echo "PW_VULKAN_USE=${PW_VULKAN_USE} - DX9-11 to OPENGL" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
elif [[ "${PW_VULKAN_USE}" = "1" ]] ; then
|
||||
echo "PW_VULKAN_USE=${PW_VULKAN_USE} - DXVK v.${DXVK_STABLE_VER} and VKD3D-PROTON v.${VKD3D_STABLE_VER}" >> "${PORT_WINE_PATH}/PortProton.log"
|
||||
elif [[ "${PW_VULKAN_USE}" = "2" ]] ; then
|
||||
@ -3428,7 +3655,7 @@ portwine_start_debug () {
|
||||
PW_TIMER=1
|
||||
fi
|
||||
done < "${PORT_WINE_PATH}/PortProton.log" | "${pw_yad_v13_0}" --text-info --tail --button="STOP"!"$PW_GUI_ICON_PATH/$BUTTON_SIZE.png":0 --title="DEBUG" \
|
||||
--skip-taskbar --width=800 --height=400 --text "${port_debug}" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" 2>/dev/null &&
|
||||
--skip-taskbar --width=800 --height=400 --text "$(eval_gettext "Please wait! After finishing the PortProton, click STOP.")" --window-icon="$PW_GUI_ICON_PATH/portproton.svg" 2>/dev/null &&
|
||||
kill_portwine
|
||||
sed -i '/.fx$/d' "${PORT_WINE_PATH}/PortProton.log"
|
||||
sed -i '/HACK_does_openvr_work/d' "${PORT_WINE_PATH}/PortProton.log"
|
||||
@ -3448,7 +3675,7 @@ portwine_start_debug () {
|
||||
pw_create_prefix_backup () {
|
||||
cd "$HOME"
|
||||
PW_PREFIX_TO_BACKUP=$("${pw_yad_v13_0}" --file --directory --width=650 --height=500 --auto-close \
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$loc_create_pfx_backup_path" 2>/dev/null )
|
||||
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" --title "$(eval_gettext "BACKUP PREFIX TO...")" 2>/dev/null )
|
||||
YAD_STATUS="$?"
|
||||
if [[ "$YAD_STATUS" == "1" || "$YAD_STATUS" == "252" ]] ; then exit 0 ; fi
|
||||
if [[ ! -z "$(grep "/${PW_PREFIX_NAME}/" "${PORT_WINE_PATH}"/*.desktop )" ]] ; then
|
||||
@ -3556,7 +3783,7 @@ run_desktop_b_click () {
|
||||
export -f run_desktop_b_click
|
||||
|
||||
gui_clear_pfx () {
|
||||
if yad_question "${port_clear_pfx}" ; then
|
||||
if yad_question "$(eval_gettext "Do you want to clear prefix in PortProton?")" ; then
|
||||
pw_clear_pfx
|
||||
print_info "Restarting PP after clearing prefix..."
|
||||
export SKIP_CHECK_UPDATES=1
|
||||
@ -3567,7 +3794,7 @@ gui_clear_pfx () {
|
||||
export -f gui_clear_pfx
|
||||
|
||||
gui_rm_portproton () {
|
||||
if yad_question "${port_del2}" ; then
|
||||
if yad_question "$(eval_gettext "Do you really want to remove PortProton?")" ; then
|
||||
rm -fr "${PORT_WINE_PATH}"
|
||||
rm -fr "${PORT_WINE_TMP_PATH}"
|
||||
rm -fr "${HOME}/PortWINE"
|
||||
|
Reference in New Issue
Block a user