27 Commits
Author SHA1 Message Date
GAMMACASE bc9d3c2b8e Obsolete tier1.lib/.a & optimize murmurhash2 inlining 2026-09-30 16:18:43 +03:00
Michal 356d39e45e Reset cvar/cmd reg list roots in ConVar_Unregister (#429) 2026-09-25 22:05:57 +03:00
GAMMACASE 1dffec0e37 Extend ConVar_Unregister to actually unregister all cvars/cmds 2026-09-25 17:47:51 +03:00
GAMMACASE 1ffda78d9a Expose ConCommand/ConVarRegList to convar.h 2026-09-24 19:27:13 +03:00
GAMMACASE ea41df0f68 Update ICvar & Cvar structs 2026-03-20 17:56:26 +03:00
GAMMACASE 92e02ab8dd Update ICvar, ConVarData & ConVarValueInfo_t 2025-08-21 22:31:28 +03:00
GAMMACASE f68cb313fe Update ICvar interface 2025-05-12 20:31:06 +03:00
GAMMACASE 402cd670d5 Fix invalid memory access in ConVarRefAbstract::SetValueInternal 2025-03-19 00:30:36 +03:00
GAMMACASE 4f250e6e81 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-18 19:45:42 +03:00
4be45e926c CS2 ConVar RE (#154)
* progress report

* clean up flags

* progress report

* remove some debug

* Template the convar class

* progress report

* undo automatic symbol change

* Get rid of ConCommandRefAbstract

* remove debug

* reorganise the headers, and add templated getter/setters

* finish templating job

* fix copyright symbol

* dont break metamod compilation

* template the entire ConVar class

* template change callback

* Use MAX_SPLITSCREEN_CLIENTS for IConVar definition

* split convarhandle once more + template iconvar

* Renaming IConVar and depollute ICVar

* remove static_assert + IDA comments

* renaming struct properties

* undo icommandline change

* make reglist simpler

* Destroy ConCommandBase

* move some functions to baseconvardata

* put cvar values into its own struct

* revise struct

* remove padding

* add back unknown

* finish templating

* fix wrong ret value

* review changes

* small mistake

* setup times changed

* expose handle

* add character_t include to icvar

* Streamline build for others

This commit will be reverted eventually

* Update command completion cb signatures

* Update ConVarValueInfo_t & CConVarBaseData

* Update CCommand

* Update ICvar

* Update ConCommand & cb structs

* Fix few typos

* Add ConVarRefAbstract & update ConVar api

Also a lot of small code reshufflings/cleanup

* Add CCvar

* Cleanup CONVAR_WORK_FINISHED defines

* Few small corrections

* Remove ConCommandBase declaration

* Add concommand/convar register callbacks

---------

Co-authored-by: Kenzzer <[email protected]>
Co-authored-by: GAMMACASE <[email protected]>
2025-02-15 16:26:37 +00:00
GAMMACASE 0048b058e6 Fix command registration
This prevents static initialization problem that was arising where CUtlVector constructor was called after commands were added to it, resulting in an empty list when it gets to the registration step
2023-09-27 16:54:58 +00:00
Nick Hastings 2541d89f62 Rework ConCommandRegList 2023-09-27 16:54:58 +00:00
Nick Hastings 311c966f97 Fix late-registered ConCommands not saving handle 2023-09-27 16:54:58 +00:00
Nick Hastings e11c4e69b1 Really fix convar linking errors 2023-09-27 16:54:58 +00:00
Nick Hastings f32ff65c1b Fix linking errors and var name typos in ConVar/ConCommand reg lists 2023-09-27 16:54:58 +00:00
Nick Hastings 2c9f711bbd Update ConCommand/ConCommandBase/CCommand/ConCommandHandle 2023-09-27 16:54:58 +00:00
Nicholas Hastings 27fe1b091f Update ConVar flags for ConVar_Register to use correct type (alliedmodders/metamod-source#42). 2018-03-14 18:09:45 -04:00
Nicholas Hastings 3940eefc90 Update ConVar flags to use int64 everywhere. (alliedmodders/metamod-source#42)
Still needs tier1 recompile.
2018-03-13 17:54:16 -04:00
Nicholas Hastings ebb0e1ea3b Fix randomish issues with command callbacks.
Also implemented ctors for remaining variants.
2016-08-29 19:16:45 -04:00
Nicholas Hastings e7e04dc259 Hack-fix ConVar / ConCommandBase.
Not sure what these new GetXVirtualized are for. They seem to have their own stored values,
but were only added when Server-bounded convars were also touched (and implementing these).
2015-10-19 15:53:41 -04:00
Scott Ehlert 4e0f6d3c60 Fix ConVar and ConCommands 2015-07-09 13:10:10 -04:00
Nicholas Hastings cd9b331641 Start of Source2 work. 2015-07-09 13:07:26 -04:00
AnAkkk a0bb9c48cf Fix command callbacks 2014-08-28 19:42:10 +02:00
Nicholas Hastings b4f7c7966a Did a pass of updating/fixing now that symbol info is available. 2013-07-12 02:25:04 -04:00
Nicholas Hastings bac49f4e16 Updated IFileSystem, IKeyValuesSystem, ConCommand and tier1 lib for 2013-04-19 game update. 2013-04-22 18:57:11 -04:00
Scott Ehlert fb701bd569 Added reverse-engineered interfaces lib code and hacked up tier1 and mathlib to build against the newer headers. 2012-05-21 02:49:35 -05:00
Scott Ehlert afaa180bbc Imported tier1 and mathlib code from L4D2 SDK. 2012-05-21 02:48:36 -05:00