Commit 1ce8e8ca authored by Mikhail Tergoev's avatar Mikhail Tergoev

replaced open dir to find ppdb

parent 460a86cd
......@@ -5817,7 +5817,7 @@ Binding a game to a single node reduces memory‑access latency and limits costl
--tab="${translations[ADVANCED]}!$PW_GUI_ICON_PATH/$TAB_SIZE.png!" \
--button="${translations[CANCEL THE CHANGES]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Cancel the current changes and return to the previous menu]}":1 \
--button="${translations[RESET SETTINGS]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Restore default settings]}":2 \
--button="${translations[OPEN THE SETTINGS FILE]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Open the <b>.ppdb</b> settings file in a system text editor to view and change variables manually]}":150 \
--button="${translations[OPEN DIRECTORY]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Open directory with <b>.ppdb</b> file]}":150 \
--button="${translations[SAVE CHANGES]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Save the current changes, and go to the previous menu]}":0 2>/dev/null
YAD_STATUS="$?"
......@@ -5830,7 +5830,7 @@ Binding a game to a single node reduces memory‑access latency and limits costl
restart_pp
;;
150)
gui_edit_db_file
open_game_folder
;;
esac
......@@ -8060,26 +8060,6 @@ gui_open_user_conf () {
}
export -f gui_open_user_conf
gui_edit_db_file () {
GUI_EDIT_DB_FILE="$("${pw_yad}" --title="${translations[EDIT DB]}" \
--text-info --editable --width=800 --height=600 \
--window-icon="$PW_GUI_ICON_PATH/portproton.svg" \
--button="${translations[BACK]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!":1 \
--button="${translations[SAVE]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!":2 \
--filename="${PORTWINE_DB_FILE}" 2>/dev/null)"
YAD_STATUS="$?"
case "$YAD_STATUS" in
1|252)
restart_pp --edit_db
;;
2)
echo "${GUI_EDIT_DB_FILE}" > "${PORTWINE_DB_FILE}"
restart_pp --edit_db
;;
esac
}
gui_open_scripts_from_backup () {
[[ -d "${PORT_WINE_TMP_PATH}/scripts_backup/" ]] && cd "${PORT_WINE_TMP_PATH}/scripts_backup/" || cd "$HOME"
PW_SCRIPT_FROM_BACKUP=$("${pw_yad}" --file --width=650 --height=500 \
......
......@@ -752,12 +752,11 @@ if [[ -f "$portwine_exe" ]] ; then
"$pw_yad" --plug=$KEY_START --tabnum="2" --form --align-buttons --homogeneous-column $PW_GUI_START_TABNUM2 \
--field=" ${translations[Base settings]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Edit database file for]} ${PORTWINE_DB}":"FBTN" '@bash -c "button_click --start 118"' \
--field=" ${translations[Open directory]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Open directory with <b>.ppdb</b> file]}":"FBTN" '@bash -c "button_click --start open_game_folder"' \
--field=" ${translations[Find settings (ppdb)]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Try to find the settings on the website ppdb.linux-gaming.ru and apply them.]}":"FBTN" '@bash -c "button_click --start find_ext_ppdb"' \
--field=" vkBasalt!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Enable vkBasalt by default to improve graphics in games running on Vulkan. (The HOME hotkey disables vkbasalt)]}":"FBTN" '@bash -c "button_click --start 120"' \
--field=" MangoHud!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Enable Mangohud by default (R_SHIFT + F12 keyboard shortcuts disable Mangohud)]}":"FBTN" '@bash -c "button_click --start 122"' \
--field=" dgVoodoo2!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Enable dgVoodoo2 by default (This wrapper fixes many compatibility and rendering issues when running old games)]}":"FBTN" '@bash -c "button_click --start 124"' \
--field=" GameScope!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Enable GameScope by default (Wayland micro compositor)]}":"FBTN" '@bash -c "button_click --start 126"' \
--field=" ${translations[Find settings (ppdb)]}!$PW_GUI_ICON_PATH/$BUTTON_SIZE.png!${translations[Try to find the settings on the website ppdb.linux-gaming.ru and apply them.]}":"FBTN" '@bash -c "button_click --start find_ext_ppdb"' \
2>/dev/null &
if [[ $PW_GUI_START == "NOTEBOOK" ]] ; then
......@@ -1199,7 +1198,6 @@ case "$PW_YAD_SET" in
gui_open_scripts_from_backup) gui_open_scripts_from_backup ;;
open_changelog) open_changelog ;;
change_loc) change_loc ;;
open_game_folder) open_game_folder ;;
find_ext_ppdb) find_ext_ppdb "$portwine_exe" ;;
118) gui_edit_db ;;
120) gui_vkbasalt ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment