Read the default of a CVar

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: Read the default of a CVar

Re: Read the default of a CVar

by inkoalawetrust » Fri Feb 21, 2025 8:09 am

Well, it's been merged so a moderator should probably move this to the closed feature suggestions subforum.

Re: Read the default of a CVar

by Marrub » Sun Feb 16, 2025 10:29 pm

Opened a PR: #2950
Took maybe 5 minutes to implement? Shoulda just done that first instead of asking.

Read the default of a CVar

by Marrub » Wed Feb 05, 2025 7:37 pm

I don't think anyone's suggested this before, but could there be functions to get the default value of a CVar? This would be useful for option menus, for instance. Currently you could reset the CVar, get the value, and then set it back to what it was, but that's arduous and may interact weirdly with custom CVar classes.

Top