Commit Graph

165 Commits

Author SHA1 Message Date
GAMMACASE
663e563c4b Update CUtlBuffer extern methods 2025-07-31 20:04:09 +03:00
GAMMACASE
bc8ed15fef Rename UtlMemory_* to UtlVectorMemory_* 2025-07-31 19:58:46 +03:00
GAMMACASE
6f4d1c36cf Update ConVarValueInfo_t 2025-07-31 19:55:46 +03:00
GAMMACASE
4ab8a0466d Correct gcc parenthesis warnings 2025-07-31 17:29:07 +03:00
GAMMACASE
bdb915aaae Update CRawAllocator, CUtlMemoryBlockAllocator & Add CUtlVectorRawAllocator 2025-07-31 17:29:07 +03:00
GAMMACASE
5ab17ebfcb Separate common method from kv3 headers 2025-07-31 17:28:47 +03:00
GAMMACASE
bd6fe1a547 Update ICvar interface 2025-07-31 17:28:47 +03:00
Nick Hastings
3dc26fdbb1 Fix file encoding 2025-05-17 14:11:58 -04:00
GAMMACASE
788e54c210 Update strtools.h
Add quite a bunch of tier0 exported methods as well as update existing ones with sdk2013 support
2025-03-06 22:00:42 +03:00
GAMMACASE
3b07e2a008 Correct certain type definitions
Definitions were retrieved from schema dumps
2025-03-05 20:19:50 +03:00
GAMMACASE
4465eb0930 Correct CKeyValues3Context::Clear/Purge 2025-02-25 21:41:37 +03:00
GAMMACASE
31315b4e82 Correct return on cvar default, min/max values 2025-02-22 05:46:28 +03:00
GAMMACASE
74ea934374 Correct ConCommandRef::IsFlagSet 2025-02-17 19:58:28 +03:00
GAMMACASE
a5b9fe8cee Correct is_pod_v usage 2025-02-16 16:50:00 +03:00
GAMMACASE
7678f00e41 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-16 00:16:12 +03:00
GAMMACASE
1569602dfa Replace is_literal_type_v usage with is_pod_v 2025-02-15 21:14:17 +03:00
Benoist
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
GAMMACASE
680daff5f1 Update CKeyValues_Data 2025-01-23 19:16:17 +03:00
GAMMACASE
533426bc89 Initialize CBufferStringN::m_FixedData 2025-01-16 13:22:50 +03:00
GAMMACASE
d18bab819c Refactor CBufferString 2025-01-16 01:44:00 +03:00
GAMMACASE
33bef10acd Update KeyValues3
Add table member getters/setters & small refactor to other methods
2025-01-15 20:34:37 +03:00
GAMMACASE
f60481c2ae Add KeyValues3 flags related methods 2025-01-15 19:35:19 +03:00
GAMMACASE
4bc240d46a Add CKeyValues3Iterator 2025-01-15 19:14:33 +03:00
GAMMACASE
49191ff748 Update KeyValues3 member & method namings 2025-01-15 18:48:45 +03:00
GAMMACASE
64f3cac5e9 Update IKeyValuesSystem & obsolete public/vstdlib 2025-01-15 17:19:41 +03:00
Vladimir
f3b44f206d
Update KeyValues3Context & its allocation lifecycle (#289)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
Co-authored-by: Nyano <dison2233@126.com>
2025-01-01 22:36:06 +03:00
GAMMACASE
769c1ef1b7 Fix clang enum warning
Fixes -Wdeprecated-anon-enum-enum-conversion warnings on clang
2024-12-31 21:13:01 +03:00
GAMMACASE
14e77af283 Update CKeyValues3Context size
Made separately to resolve issues related to CGameEntitySystem and other structs that depend on CKeyValues3Context size, while more concrete update to it is underway
2024-12-20 23:26:19 +03:00
Nyano
8563376c23
Fix CUtlSortVector::QuickSort issues on windows (#283) 2024-11-21 14:01:11 +03:00
zer0.k
fc4b98f1a7
Fix UtlSortVector member initialization order (#275) 2024-10-09 14:01:07 +03:00
GAMMACASE
e311e59189 Update CSplitString 2024-10-07 03:40:38 +03:00
GAMMACASE
f8b8fe219b Update CEntityKeyValues 2024-10-07 01:33:33 +03:00
GAMMACASE
6af29ea849 Correct return types of V_atoi & V_atof 2024-10-04 23:27:01 +03:00
Poggu
05e47e5611
Correct CSplitString constructors (#272)
Fixes potential crashes and invalid member access
2024-10-04 16:18:59 +03:00
GAMMACASE
9f1d960f6a Improve CUtlStringToken string constructor
Prevent hashing attempts on emtpy or null strings
2024-10-04 03:25:10 +03:00
GAMMACASE
40a9bb9c02 Add V_strcasecmp & V_strncasecmp back 2024-10-04 00:49:05 +03:00
Vladimir
994fb7be03
Update ICommandLine interface & CUtlStringToken (#268)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2024-10-04 00:39:08 +03:00
GAMMACASE
f93146f5f6 Correct V_stristr & V_strnistr args 2024-10-03 23:22:34 +03:00
GAMMACASE
af6a741eee Update KeyValues::SaveToFile 2024-10-03 23:12:08 +03:00
GAMMACASE
96571c1827 Move strtools to tier0 & update tier1 2024-10-03 22:38:28 +03:00
Poggu
ffbc15d41e
Update CSplitString (#267) 2024-10-03 16:55:30 +03:00
GAMMACASE
fda9cb0325 Update CUtlBuffer 2024-08-07 00:23:40 +03:00
GAMMACASE
82cc7563cd Update CCountedStringPool 2024-05-31 05:57:39 +03:00
GAMMACASE
c5867f9e51 Add CUtlOrderedMap stub 2024-05-25 05:41:26 +03:00
xen
05d5764701
Copy CUtlStringList from sdk2013 (#238)
Fixes mismatched delete on CUtlStringList usage.
2024-05-12 21:35:04 +03:00
GAMMACASE
79a5436dfc Resolve CUtlStringToken in utlcommon.h 2024-05-09 20:05:39 +03:00
GAMMACASE
36dd2db721 Add DefaultHashFunctor<CUtlStringToken> 2024-05-08 21:58:43 +03:00
GAMMACASE
9ddef9ac9a Add CCircularBuffer & CFixedSizeCircularBuffer 2024-05-06 16:12:02 +03:00
GAMMACASE
fa8379fc35 Update CUtlScratchMemoryPool 2024-05-06 09:08:31 +03:00
vanz696
ce8f799264
Fix CUtlLeanVectorFixedGrowableBase elements alignment (#233)
And update CUtlLeanVectorBase, SchemaClassFlags1_t and NetChanStat_t
2024-04-26 22:37:59 +03:00