forked from CastroFidel/PortWINE
Scripts version 2215
This commit is contained in:
@ -161,12 +161,14 @@ pw_gui_for_edit_db () {
|
||||
else
|
||||
CPU_LIMIT_VAR="disabled"
|
||||
fi
|
||||
|
||||
|
||||
GET_REFRASH_RATE="30!45!60!75!120!144!165!240"
|
||||
|
||||
logical_cores=$(grep -c "^processor" /proc/cpuinfo)
|
||||
if [[ "${logical_cores}" -le "4" ]] ; then
|
||||
GET_LOGICAL_CORE="$(seq -s! 1 $((${logical_cores} - 1)))"
|
||||
GET_LOGICAL_CORE="1!$(seq -s! 1 $((${logical_cores} - 1)))"
|
||||
else
|
||||
GET_LOGICAL_CORE="2!$(seq -s! 4 4 $((${logical_cores} - 1)))"
|
||||
GET_LOGICAL_CORE="1!2!$(seq -s! 4 4 $((${logical_cores} - 1)))"
|
||||
fi
|
||||
|
||||
unset ADD_CHK_BOX_EDIT_DB
|
||||
@ -201,7 +203,7 @@ pw_gui_for_edit_db () {
|
||||
--field="${loc_gui_arg_exe}!${loc_gui_arg_exe_help} :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_mango_fps}!${loc_gui_mango_fps_help} :CB" "${FPS_LIMIT_VAR}!disabled!30!60!90!120" 2>/dev/null 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" 2>/dev/null &
|
||||
--field="${loc_gui_mango_fps}!${loc_gui_mango_fps_help} :CB" "${FPS_LIMIT_VAR}!disabled!${GET_REFRASH_RATE}" 2>/dev/null 1> "${PORT_WINE_TMP_PATH}/tmp_output_yad_fps_limit" 2>/dev/null &
|
||||
"${pw_yad_v12_3}" --paned --key="$KEY_EDIT_DB_GUI" --title "EDIT_DB" --text-align=center --height="650" \
|
||||
--text "${loc_gui_edit_db} <b>${PORTWINE_DB}</b>\n ${loc_gui_edit_db_help}" --separator=" " --borders=3 \
|
||||
--window-icon="$PW_GUI_ICON_PATH/port_proton.png" \
|
||||
|
Reference in New Issue
Block a user