mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-17 16:32:37 +00:00
Extra bloaty junk to modernise stuff a bit.
https://fte.triptohell.info/moodles/qss/
- removed the archive and server members of cvar_t structure which are now represented by the CVAR_ARCHIVE, CVAR_NOTIFY and CVAR_SERVERINFO flags. - added new Cvar_SetROM and Cvar_SetValueROM functions to set vars marked as CVAR_ROM (read-only vars) programaticaly - added Cvar_SetCallback() as a new function to assign (or remove) a callback function to a cvar. - changed Cvar_RegisterVariable() to only accept a var pointer as in original quake - moved notification handling from Cvar_Set() to callbacks. - changed Cvar_Set() so that it doesn't reallocate the var's string buffer if nothing is changed, nor does it run the var's callback. - changed the 'registered' and 'cmdline' cvars to be read-only so that the users can't change it using the console. (and with 'registered' flagged as CVAR_ROM, the 'static_registered' thing is no longer required) - added comment that sending cmdline upon CCREQ_RULE_INFO is evil... - more to follow later. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@566 af15c1b1-3010-417e-b628-4374ebc0bcbd |
||
---|---|---|
quakespasm |