Commit Graph

82 Commits

Author SHA1 Message Date
GAMMACASE
f1573c3515 Correct CUtlHashtableEntry data type
Resolves compile time errors for key types larger that 4 bytes
2025-10-21 17:39:53 +03:00
GAMMACASE
e39d597654 Update CThreadSpinRWLock 2025-10-19 21:20:59 +03:00
Artiik373
8ae5bb4a5e
Update vprof.h (#323)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2025-08-03 20:23:34 +03:00
GAMMACASE
216bce978f Update AlignedByteArray_t 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
11de3bc5de Correct CBaseIntHandle alignment 2025-07-31 17:28:47 +03:00
Nick Hastings
3dc26fdbb1 Fix file encoding 2025-05-17 14:11:58 -04:00
GAMMACASE
1509228b8f Correct GetCPUInformation() usage 2025-04-01 12:31:09 +03:00
GAMMACASE
b6b9b257d8 Update platform.h
Various small changes and update to CPUInformation struct as well as tier0 exported methods
2025-03-06 21:59:02 +03:00
GAMMACASE
b7a9981cb4 Add annotations.h 2025-03-06 21:57:02 +03:00
GAMMACASE
14020411eb Update commonmacros.h 2025-03-06 21:56:48 +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
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
e06c04d131 Merge few sdk2013 changes to mathlib
Adds RandomVectorInUnitSphere & RandomVectorInUnitCircle definitions
2024-08-20 22:57:34 +03:00
GAMMACASE
49a2b0b4ef Potentially fix library unloading issues 2024-06-04 12:12:15 +03:00
vanz696
cc207907f5
Update CTSListBase & various schema system naming changes (#253) 2024-06-03 19:46:16 +03:00
GAMMACASE
5265052f04 Update CSchemaSystemTypeScope & CThreadSpinMutex 2024-05-25 05:33:59 +03:00
Nukoooo
f7ed6a0086
Fix compilation error on GCC12+ with C++20 (#237) 2024-05-08 14:48:53 +03:00
xen
9d4727eba1
Add VProfScopeHelper and update VPROF_* macros (#235)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2024-05-02 06:40:35 +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
GAMMACASE
73330a3aab Move memstack to tier0 2024-03-18 20:49:04 +03:00
vanz696
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
Mooshua
fdc4954f22
KeyValues & ICommandLine fixes after 7/2/24 CS2 update (#201)
Co-authored-by: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com>
2024-02-07 12:55:45 +03:00
GAMMACASE
10c68304f1 Fix missing CBufferString error in memalloc.h 2024-01-19 02:30:37 +03:00
GAMMACASE
a0e5701b26 Update IMemAlloc 2024-01-18 02:58:55 +03:00
icedrocket
731e38ba24
Improve c++20 compatibility (#195) 2024-01-14 00:58:05 +03:00
Nick Hastings
1d394d3365 Don't redefine offsetof from platform in memalloc 2023-11-19 14:40:33 -05:00
Nick Hastings
6395b1c704 Use built-in offsetof on Linux 2023-11-19 09:02:42 -05:00
vanz666
bf82ba994d
Add KeyValues3 & CUtlLeanVector (#177) 2023-11-18 22:19:28 +03:00
Nicholas Hastings
c5d57c03ee
Update Protobuf and add protos for CS2 (#176)
* Replace protobuf 2.6.1 with 3.21.8

* Update/add protobuf libs

* Add CS2 protos

* Remove old csgo/dota protos

* Add versioned protoc bin

* Comment out Valve's `schema` define for now

* Use ENetworkDisconnectionReason

* Fix-up `offsetof` to avoid errors on some Clang versions
2023-11-15 23:58:12 +00:00
Vladimir
fec44c3e82
Update LoggingSeverity_t enumeration (#171) 2023-10-24 12:16:38 +00:00
GAMMACASE
8e69335c67 Fix debug issues in memoverride.cpp 2023-10-20 06:20:18 +03:00
xen
f653b1ec62
Update COMPILE_TIME_ASSERT defines (#167) 2023-10-17 02:19:22 +03:00
Nick Hastings
62490710ed Update libs. 2023-10-13 14:51:08 -04:00
vanz666
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
Alexey T
5bbd47e578
Fix compilation errors for std=c++2a (#146) 2023-10-02 16:34:18 +03:00
GAMMACASE
6fd990f46b Few minor fixes 2023-10-01 17:27:56 +03:00
GAMMACASE
0ac0302c8e Fix GCC compilation issues 2023-09-29 13:13:00 +03:00
zer0.k
62c3df6af5 Update bitbuf to match sdk2013 2023-09-27 16:54:58 +00:00
GAMMACASE
052ef19902 Correct the old windows SDK's fix 2023-09-27 16:54:58 +00:00
GAMMACASE
0c956066ec Fix compile for old windows SDK's 2023-09-27 16:54:58 +00:00
GAMMACASE
d107389982 Fix IVEngineServer2::GetPlayerUserId 2023-09-27 16:54:58 +00:00
GAMMACASE
956c4cf296 Fix tier1.lib compilation issues 2023-09-27 16:54:58 +00:00
GAMMACASE
ae308873b7 Fix memoverride.cpp compilation 2023-09-27 16:54:58 +00:00
GAMMACASE
25ff538f57 Remove IMemAlloc dbg variants
Alloc, Realloc & Free dbg variants doesn't seem to appear in the engine now, yet they pollute virtual function list due to them being overloads with the same name thus causing random crashes if called
2023-09-27 16:54:58 +00:00
GAMMACASE
d525e7ad19 Update tier0.lib & Obsolete mem.h 2023-09-27 16:54:58 +00:00
GAMMACASE
a8c0e4f903 A lot of minor edits/fixes 2023-09-27 16:54:58 +00:00
GAMMACASE
52fe1295e1 Fix compile errors & random crashes related to IMemAlloc interface
This mainly affected debug builds
2023-09-27 16:54:58 +00:00
Nick Hastings
bdf731b2db Remove Plat_IsInDebugSessionRaw. No longer exists 2023-09-27 16:54:58 +00:00
GAMMACASE
1312e1c957 Few more adjustments 2023-09-27 16:54:58 +00:00