I see that the “skill” CVar is latched. Changes to it do not take effect until a new game is started, and it says so in the console.
Please allow CVARINFO-defined CVars to be latched like this, as well.
The intended use case is to have additional difficulty settings that, like “skill”, only take effect on a new game. Currently, the only way I know of to do that is to capture the CVars' values upon game startup, and store them in a global somewhere, but that doesn't make the latch warning appear on the console.
Allow CVARINFO cvars to be latched
Moderator: GZDoom Developers
-
- Posts: 111
- Joined: Wed Jun 15, 2016 2:49 pm
Re: Allow CVARINFO cvars to be latched
Very interesting, would actually like this too. Currently I'm storing the CVar as well, but it would be nice to have the latch warning, provided that it's feasible to do.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Allow CVARINFO cvars to be latched
Agreed, a useful one. It should be a keyword: "latch".
Re: Allow CVARINFO cvars to be latched
Keep in mind even if you do this, CVAR latches are only saved on the console side.
If you modify the CVARs internally they will not latch.
If you modify the CVARs internally they will not latch.
- Major Cooke
- Posts: 8170
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Allow CVARINFO cvars to be latched
That's precisely what I am hoping for.