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

88 Commits

Author SHA1 Message Date
b18c8d285a Fix CKeyValues3Context::AllocString returning nullptr on empty strings 2025-08-12 16:53:22 +03:00
646d08fe4d Correct multiple consts declarations x2 (#327) 2025-08-12 16:52:57 +03:00
5f055a725d Update CKeyValues3Table & CKV3MemberName 2025-08-12 16:52:56 +03:00
31cf1efba3 Separate common method from kv3 headers 2025-06-05 16:34:12 +03:00
e1080568a2 Update ICvar interface 2025-05-30 16:41:24 +03:00
bb26f8301c Remove register from generichash (#309) 2025-05-17 16:13:50 -04:00
e4cf9ea19b Fix file encoding 2025-05-17 14:14:47 -04:00
fbe93e1528 Fix invalid memory access in ConVarRefAbstract::SetValueInternal 2025-03-19 00:35:07 +03:00
afcef9c62c Correct CKeyValues3Context::Clear/Purge 2025-03-19 00:35:06 +03:00
9a90836ad5 Correct FCVAR flags being int32 & handle ConVarRefAbstract invalidation 2025-02-18 19:46:53 +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
d18bab819c Refactor CBufferString 2025-01-16 01:44:00 +03:00
33bef10acd Update KeyValues3
Add table member getters/setters & small refactor to other methods
2025-01-15 20:34:37 +03:00
4bc240d46a Add CKeyValues3Iterator 2025-01-15 19:14:33 +03:00
49191ff748 Update KeyValues3 member & method namings 2025-01-15 18:48:45 +03:00
4c74b3f66e Correct KeyValues3 array methods 2025-01-15 02:00:51 +03:00
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
96571c1827 Move strtools to tier0 & update tier1 2024-10-03 22:38:28 +03:00
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
c5587c0fb6 Update tier1.lib/.a 2024-03-18 22:12:30 +03:00
0279aeec58 Move stringpool to tier0 2024-03-18 22:06:03 +03:00
73330a3aab Move memstack to tier0 2024-03-18 20:49:04 +03:00
3162069064 Move netadr to tier0 2024-03-18 19:13:05 +03:00
ed76beac38 Move uniqueid to tier0 2024-03-18 18:52:28 +03:00
de0818842b Remove undiff.cpp 2024-03-18 18:35:19 +03:00
391f9e7427 Update tier1.lib/.a 2024-03-18 18:34:40 +03:00
973e91c238 Update generichash.cpp/.h 2024-03-18 18:09:38 +03:00
cce0b8346d Move diff.cpp to tier0 2024-03-18 17:06:56 +03:00
2effcaf546 Move checksum_md5 to tier0 2024-03-18 17:03:12 +03:00
49322fef51 Move checksum_crc to tier0 2024-03-18 16:59:18 +03:00
df5e86e662 Move CharacterSetBuild to tier0 2024-03-18 16:50:07 +03:00
4e5b79207c Move CByteswap to tier0 2024-03-18 16:46:21 +03:00
a901844549 Obsolete processor_detect.cpp 2024-03-18 16:41:18 +03:00
7a7f8b9cb6 Obsolete datamanager.cpp/.h 2024-03-18 15:59:22 +03:00
139e609877 Update bf_write/read classes
Also use correct variant of WriteUBitVar/ReadUBitVar
2024-03-18 15:57:08 +03:00
ab21c70896 Add schemasystem (#215)
Update CUtlMemoryPool*, CUtlSymbol*, CUtlTSHash, CThreadSpinRWLock, CThreadFastMutex (now replaced by CThreadSpinMutex)

Implemented some missing ThreadInterlocked* functions
2024-03-18 15:46:20 +03:00
92bffa0578 Various updates to CEntityClass, CEntityInstance & CUtlDict (#196) 2024-01-26 05:11:01 +03:00
b2301a9ac3 Add CEntityKeyValues, EntityInstanceIter_t, EntityInstanceByNameIter_t, EntityInstanceByClassIter_t & other stuff (#183)
* Replace g_pEntitySystem with GameEntitySystem() function;
* KeyValues3, CGameSystem & CVariant updates;
2023-12-23 20:03:58 +03:00
d7fc96f1e9 Remove utlsymbol.cpp from tier1 vcxproj 2023-12-17 12:22:53 -05:00
6965e3e702 Update CUtlSymbolTable and tier1 project file (#190)
* Update CUtlSymbolTable and tier1 project file

* Fix unintended change

* change nullptr to NULL

* Remove utlsymbol

* Fix CUtlStringMap using the wrong variable

* Add default null value to the new argument

* Remove unneeded parameter in CUtlStringMap operator[]

* fix makefile line ending
2023-12-17 17:12:51 +00:00
dc3346780d Minor fixups 2023-11-19 16:05:18 +03:00
bf82ba994d Add KeyValues3 & CUtlLeanVector (#177) 2023-11-18 22:19:28 +03:00
62490710ed Update libs. 2023-10-13 14:51:08 -04:00
c0def21c93 Major refactor of utl* classes (#164)
Changed/Added classes: CThreadMutex, CUtlMemoryBlockAllocator, CRawAllocator, CUtlHashtable, CUtlVector, CUtlMemory, CUtlMemory_RawAllocator, CUtlSymbolLarge, CUtlSymbolTableLargeBase
2023-10-13 20:16:09 +03:00
4c5294550f Update IGameEvent (#155)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2023-10-09 00:16:21 +03:00
05a5907e05 Rename byteswap to cbyteswap (#140)
Resolves include collision with protobuf dependency
2023-10-01 16:41:15 +03:00
924e0d9a67 Update tier1.lib 2023-09-27 16:54:58 +00:00
62c3df6af5 Update bitbuf to match sdk2013 2023-09-27 16:54:58 +00:00
4a6540eb29 Update tier1 VS project 2023-09-27 16:54:58 +00:00
02485a3c85 Update CUtlString & obsolete utlstring.cpp 2023-09-27 16:54:58 +00:00