Skip to content

Commit 86c82db

Browse files
committed
chore: update to CS2 SDK
2 parents b63ea22 + 7816848 commit 86c82db

File tree

4 files changed

+32
-11
lines changed

4 files changed

+32
-11
lines changed

src/main/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function(BUILD_GAME GAME GAME_PATH SDK)
1919
target_compile_definitions(DumpSource2-${GAME} PRIVATE GAME_${GAME} GAME_PATH="${GAME_PATH}")
2020
endfunction()
2121

22-
build_game(CS2 csgo DEADLOCK)
22+
build_game(CS2 csgo CS2)
2323
build_game(DOTA dota DOTA)
2424
build_game(DEADLOCK citadel DEADLOCK)
2525

src/main/dumpers/schemas/schemas.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ void Dump()
199199

200200
std::map<std::string, std::unordered_set<std::string>> foundFiles;
201201

202-
// poggu: this used to be typeScopes.GetNumStrings() but after the 29/07/2025 cs2 engine sync this caused out of bounds access to the internal vector
203-
for (auto i = 0; i < typeScopes.m_Vector.Count(); ++i)
202+
for (auto i = 0; i < typeScopes.GetNumStrings(); ++i)
204203
DumpTypeScope(typeScopes[i], schemaPath, foundFiles);
205204

206205
DumpTypeScope(schemaSystem->GlobalTypeScope(), schemaPath, foundFiles);

src/main/utils/common.cpp

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,15 @@ void CUtlString::Trim(const char*) {
8181
// STUB
8282
}
8383

84+
#ifndef GAME_CS2
8485
CUtlBuffer::CUtlBuffer(void const*, int, int) {
8586
// STUB
8687
}
88+
#else
89+
CUtlBuffer::CUtlBuffer(const void*, int, CUtlBuffer::BufferFlags_t) {
90+
// STUB
91+
}
92+
#endif
8793

8894
void ConMsg(const char*, ...) {
8995
// STUB
@@ -95,13 +101,7 @@ IMemAlloc* g_pMemAlloc = nullptr;
95101
void Plat_ExitProcess(int) {
96102
// STUB
97103
}
98-
/*
99-
#ifdef GAME_CS2
100-
void Plat_FatalErrorFunc(const tchar* pMsg, ...) {
101-
// STUB
102-
}
103-
#endif
104-
*/
104+
105105
bool Plat_IsInDebugSession() {
106106
// STUB
107107
return false;
@@ -216,4 +216,26 @@ int V_tier0_strlen(const char*) {
216216

217217
void Warning(const char*, ...) {
218218
// STUB
219+
}
220+
221+
void UtlVectorMemory_FailedAllocation(int, int) {
222+
// STUB
223+
}
224+
225+
int UtlVectorMemory_CalcNewAllocationCount(int, int, int, int) {
226+
// STUB
227+
return 0;
228+
}
229+
230+
void* UtlVectorMemory_Alloc(void*, bool, int, int) {
231+
// STUB
232+
return nullptr;
233+
}
234+
235+
void V_tier0_memmove(void*, const void*, size_t) {
236+
// STUB
237+
}
238+
239+
void Msg(const tchar* pMsg, ...) {
240+
// STUB
219241
}

0 commit comments

Comments
 (0)