Added show_fps_limit if there are more than two limit values
This commit is contained in:
@@ -603,9 +603,13 @@ gui_MangoHud () {
|
||||
done
|
||||
|
||||
GUI_MH_FPS_RESULT="${GUI_MH_FPS_RESULT}"
|
||||
if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ]
|
||||
then export PW_FPS_LIMIT="0+${GUI_MH_FPS_RESULT%+}"
|
||||
else export PW_FPS_LIMIT="${GUI_MH_FPS_RESULT%+}"
|
||||
if [ "$(echo "${GUI_MH_FPS_RESULT}" | awk -F'+' '{print $2}')" ] ; then
|
||||
export PW_FPS_LIMIT="0+${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
|
||||
|
||||
if [[ -n "$MH_FONT_SIZE" ]]
|
||||
|
||||
Reference in New Issue
Block a user