1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 12:06:07 +08:00
Commit Graph

45 Commits

Author SHA1 Message Date
0e115eb214 Correct return types of ConVar FilterCallback typedefs 2025-08-15 03:10:22 +03:00
91fad282a0 Correct CConVar constructors 2025-08-15 03:00:33 +03:00
e0e3380c9f Update ICvar, ConVarData & ConVarValueInfo_t 2025-08-15 02:38:48 +03:00
6f4d1c36cf Update ConVarValueInfo_t 2025-07-31 19:55:46 +03:00
bd6fe1a547 Update ICvar interface 2025-07-31 17:28:47 +03:00
31315b4e82 Correct return on cvar default, min/max values 2025-02-22 05:46:28 +03:00
74ea934374 Correct ConCommandRef::IsFlagSet 2025-02-17 19:58:28 +03:00
a5b9fe8cee Correct is_pod_v usage 2025-02-16 16:50:00 +03:00
7678f00e41 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-16 00:16:12 +03:00
1569602dfa Replace is_literal_type_v usage with is_pod_v 2025-02-15 21:14:17 +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 <kenzzer@users.noreply.github.com>
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2025-02-15 16:26:37 +00:00
78bdcdaf19 Pass a context to command member callback 2023-09-30 13:51:00 +00:00
6696d3dea4 Fix an abstract CConCommandMemberAccessor<T> 2023-09-30 13:51:00 +00:00
5fa3fbeaeb Minor code tweaks 2023-09-27 16:54:58 +00:00
9429c5a6c5 Add missing CommandTarget_t 2023-09-27 16:54:58 +00:00
a8c0e4f903 A lot of minor edits/fixes 2023-09-27 16:54:58 +00:00
bff074c159 More ConCommand tweaks 2023-09-27 16:54:58 +00:00
e145eae33e Fix vtable sneaking into ConCommand 2023-09-27 16:54:58 +00:00
b58d27b75d Fix handle ref in CON_COMMAND macros 2023-09-27 16:54:58 +00:00
2c9f711bbd Update ConCommand/ConCommandBase/CCommand/ConCommandHandle 2023-09-27 16:54:58 +00:00
8df67ec7d7 Update ConVar & ConCommand handle types 2023-09-27 16:54:58 +00:00
86509802f3 Initialize more members of ConCommandDesc_t in ctor 2023-09-27 16:54:58 +00:00
4f2f511304 Fix up ConCommand callback types 2023-09-27 16:54:58 +00:00
d25d1cbe55 Fix ConVarHandle/ConCommandHandle size handleand ConCommandHandle INVALID val 2023-09-27 16:54:58 +00:00
906bd2ef70 Fix compilation errors 2023-09-27 16:54:58 +00:00
6e5d2ac6ac Update CCommand 2023-09-27 16:54:58 +00:00
843d279123 Update ICommandLine 2023-09-27 16:54:58 +00:00
e56c443c09 Update ICvar, ConVar & ConCommand classes 2023-09-27 16:54:58 +00:00
11fc23faa0 Update ICreationListenerCallbacks class 2023-09-27 16:54:58 +00:00
e0a0248b17 Restructure convar.h and icvar.h 2023-09-27 16:54:58 +00:00
f93cf9311b Remove iconvar.h 2023-09-27 16:54:58 +00:00
0d4a232fc6 Update CVValue_t to respect EConVarType 2023-09-27 16:54:58 +00:00
f0d39355d6 Small struct and class adjastments 2023-09-27 16:54:58 +00:00
2460e77afe ConVar rework initial 2023-09-27 16:54:58 +00:00
27fe1b091f Update ConVar flags for ConVar_Register to use correct type (alliedmodders/metamod-source#42). 2018-03-14 18:09:45 -04:00
3940eefc90 Update ConVar flags to use int64 everywhere. (alliedmodders/metamod-source#42)
Still needs tier1 recompile.
2018-03-13 17:54:16 -04:00
ebb0e1ea3b Fix randomish issues with command callbacks.
Also implemented ctors for remaining variants.
2016-08-29 19:16:45 -04:00
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
4e0f6d3c60 Fix ConVar and ConCommands 2015-07-09 13:10:10 -04:00
cd9b331641 Start of Source2 work. 2015-07-09 13:07:26 -04:00
a0bb9c48cf Fix command callbacks 2014-08-28 19:42:10 +02:00
b4f7c7966a Did a pass of updating/fixing now that symbol info is available. 2013-07-12 02:25:04 -04:00
bac49f4e16 Updated IFileSystem, IKeyValuesSystem, ConCommand and tier1 lib for 2013-04-19 game update. 2013-04-22 18:57:11 -04:00
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
c0a96ff1e8 Added original SDK code for Alien Swarm. 2010-07-22 01:46:14 -05:00