Added show_fps_limit if there are more than two limit values
This commit is contained in:
parent
5f5e390d8e
commit
43d25b5026
@ -603,9 +603,13 @@ gui_MangoHud () {
|
|||||||
done
|
done
|
||||||
|
|
||||||
GUI_MH_FPS_RESULT="${GUI_MH_FPS_RESULT}"
|
GUI_MH_FPS_RESULT="${GUI_MH_FPS_RESULT}"
|
||||||
if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ]
|
if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ] ; then
|
||||||
then export PW_FPS_LIMIT="0+${GUI_MH_FPS_RESULT%+}"
|
export PW_FPS_LIMIT="0+${GUI_MH_FPS_RESULT%+}"
|
||||||
else export PW_FPS_LIMIT="${GUI_MH_FPS_RESULT%+}"
|
if [[ ! "${GUI_MH_RESULT}" =~ "show_fps_limit" ]] ; then
|
||||||
|
GUI_MH_RESULT="${GUI_MH_RESULT}show_fps_limit,"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
export PW_FPS_LIMIT="${GUI_MH_FPS_RESULT%+}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$MH_FONT_SIZE" ]]
|
if [[ -n "$MH_FONT_SIZE" ]]
|
||||||
|
Loading…
Reference in New Issue
Block a user