Commit Graph

159 Commits

Author SHA1 Message Date
Nick Hastings
e4cf9ea19b Fix file encoding 2025-05-17 14:14:47 -04:00
GAMMACASE
ab928484e4 Update strtools.h
Add quite a bunch of tier0 exported methods as well as update existing ones with sdk2013 support
2025-03-19 00:35:07 +03:00
GAMMACASE
db723f3667 Correct certain type definitions
Definitions were retrieved from schema dumps
2025-03-19 00:35:06 +03:00
GAMMACASE
afcef9c62c Correct CKeyValues3Context::Clear/Purge 2025-03-19 00:35:06 +03:00
GAMMACASE
b427237b01 Correct return on cvar default, min/max values 2025-02-22 05:48:06 +03:00
GAMMACASE
050bcda98a Update ConVarValueInfo_t 2025-02-19 22:19:24 +03:00
GAMMACASE
f52b7e3668 Correct ConCommandRef::IsFlagSet 2025-02-18 19:46:54 +03:00
GAMMACASE
bfe4bb4b53 Correct is_pod_v usage 2025-02-18 19:46:54 +03:00
GAMMACASE
9a90836ad5 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-18 19:46:53 +03:00
GAMMACASE
5323275e5c Replace is_literal_type_v usage with is_pod_v
(cherry picked from commit 1569602dfa)
2025-02-15 13:16:54 -05: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
vanz696
aaaaaf040b
Update CUtlMemoryPoolBase after 4/2/2024 update (#228)
Also updates tier0/tslist.h to sdk2013 variant and other minor stuff.
2024-04-06 23:49:28 +03:00
xen
00644551e4
Rename netadr_s to netadr_t (#227)
Also remove SetIPAndPort from the tier0 export
2024-04-05 22:23:18 +03:00
GAMMACASE
5d33fddc8e Fix clang CUtlHashtableEntry errors
Co-Authored-By: vanz696 <152704532+vanz696@users.noreply.github.com>
2024-04-03 18:58:23 +03:00
zer0.k
3b3b695c09
Improve c++20 CUtlStringMap compatibility (#226) 2024-03-30 21:02:03 +03:00
GAMMACASE
0279aeec58 Move stringpool to tier0 2024-03-18 22:06:03 +03:00
GAMMACASE
73330a3aab Move memstack to tier0 2024-03-18 20:49:04 +03:00