Commit Graph
24 Commits
Author SHA1 Message Date
GAMMACASE dc8e7324b1 Obsolete tier1.lib/.a & optimize murmurhash2 inlining 2026-07-17 17:47:37 +03:00
GAMMACASE 3c33d8ab94 Update ICvar & Cvar structs 2025-10-15 15:40:46 +03:00
GAMMACASE e0e3380c9f Update ICvar, ConVarData & ConVarValueInfo_t 2025-08-15 02:38:48 +03:00
GAMMACASE bd6fe1a547 Update ICvar interface 2025-07-31 17:28:47 +03:00
GAMMACASE 9fff41ea32 Fix invalid memory access in ConVarRefAbstract::SetValueInternal 2025-03-10 19:37:55 +03:00
GAMMACASE 7678f00e41 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-16 00:16:12 +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