+string autocvar_menu_forced_saved_cvars;
+string autocvar_menu_reverted_nonsaved_cvars;
+float XonoticCvarList_updateCvarType(entity me)
+{
+ float t;
+ t = cvar_type(me.cvarName);
+ me.cvarType = "";
+ float needsForcing;
+ if(strstrofs(strcat(" ", autocvar_menu_forced_saved_cvars, " "), strcat(" ", me.cvarName, " "), 0) >= 0)
+ {
+ me.cvarType = strcat(me.cvarType, ", ", _("forced to be saved to config.cfg"));
+ needsForcing = 0;
+ }
+ else if(strstrofs(strcat(" ", autocvar_menu_reverted_nonsaved_cvars, " "), strcat(" ", me.cvarName, " "), 0) >= 0)
+ {
+ // Currently claims to be saved, but won't be on next startup.
+ me.cvarType = strcat(me.cvarType, ", ", _("will not be saved"));
+ needsForcing = 1;
+ }
+ else if(t & CVAR_TYPEFLAG_SAVED)
+ {
+ me.cvarType = strcat(me.cvarType, ", ", _("will be saved to config.cfg"));
+ needsForcing = 0;
+ }
+ else
+ {
+ me.cvarType = strcat(me.cvarType, ", ", _("will not be saved"));
+ needsForcing = 1;
+ }
+ if(t & CVAR_TYPEFLAG_PRIVATE)
+ me.cvarType = strcat(me.cvarType, ", ", _("private"));
+ if(t & CVAR_TYPEFLAG_ENGINE)
+ me.cvarType = strcat(me.cvarType, ", ", _("engine setting"));
+ if(t & CVAR_TYPEFLAG_READONLY)
+ me.cvarType = strcat(me.cvarType, ", ", _("read only"));
+ me.cvarType = strzone(substring(me.cvarType, 2, strlen(me.cvarType) - 2));
+ me.cvarTypeBox.setText(me.cvarTypeBox, me.cvarType);
+ return needsForcing;
+}