Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ file(GLOB_RECURSE HEADERS_LIST
"*.h"
)

function(BUILD_GAME GAME GAME_PATH)
function(BUILD_GAME GAME GAME_PATH SDK)
add_executable(DumpSource2-${GAME} ${SOURCES_LIST} ${HEADERS_LIST})

target_link_libraries(DumpSource2-${GAME} PRIVATE
HL2SDK-${GAME}
HL2SDK-${SDK}
fmt::fmt
spdlog
${CMAKE_DL_LIBS}
Expand All @@ -19,9 +19,9 @@ function(BUILD_GAME GAME GAME_PATH)
target_compile_definitions(DumpSource2-${GAME} PRIVATE GAME_${GAME} GAME_PATH="${GAME_PATH}")
endfunction()

build_game(CS2 csgo)
build_game(DOTA dota)
build_game(DEADLOCK citadel)
build_game(CS2 csgo DEADLOCK)
build_game(DOTA dota DOTA)
build_game(DEADLOCK citadel DEADLOCK)

source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES_LIST})
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS_LIST})
1 change: 1 addition & 0 deletions src/main/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@ class DumperApplication : public CTier0AppSystem<IAppSystem>
virtual void* unk11() { return nullptr; };
virtual void* AddSystemDontLoadStartupManifests(const char* a, const char* b) { return nullptr; };
virtual void* unk12() { return nullptr; };
virtual void* unk13() { return nullptr; };
};
7 changes: 5 additions & 2 deletions src/main/dumpers/schemas/schemas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "schemas.h"
#include "globalvariables.h"
#include "interfaces.h"
#include "schemasystem/schemasystem.h"
#include <filesystem>
#include <fstream>
#include <map>
Expand All @@ -32,6 +31,9 @@
#include <fmt/format.h>
#include "metadata_stringifier.h"
#include <spdlog/spdlog.h>
#define private public
#include "schemasystem/schemasystem.h"
#undef private

namespace Dumpers::Schemas
{
Expand Down Expand Up @@ -197,7 +199,8 @@ void Dump()

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

for (auto i = 0; i < typeScopes.GetNumStrings(); ++i)
// 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
for (auto i = 0; i < typeScopes.m_Vector.Count(); ++i)
DumpTypeScope(typeScopes[i], schemaPath, foundFiles);

DumpTypeScope(schemaSystem->GlobalTypeScope(), schemaPath, foundFiles);
Expand Down
4 changes: 2 additions & 2 deletions src/main/utils/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ IMemAlloc* g_pMemAlloc = nullptr;
void Plat_ExitProcess(int) {
// STUB
}

/*
#ifdef GAME_CS2
void Plat_FatalErrorFunc(const tchar* pMsg, ...) {
// STUB
}
#endif

*/
bool Plat_IsInDebugSession() {
// STUB
return false;
Expand Down