Skip to content

Commit 392093b

Browse files
committed
Update sdks
1 parent 4f2a597 commit 392093b

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ cd build
3131
cmake ..
3232
make
3333
```
34+
35+
## SDK Configuration
36+
37+
Each game target is built with `build_game(GAME, GAME_PATH, SDK)` in [`src/main/CMakeLists.txt`](./src/main/CMakeLists.txt). The third argument selects which HL2SDK from `vendor/` to link against. Games update more often than the SDKs, so it may be necessary to switch to another game's SDK.

src/main/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ function(BUILD_GAME GAME GAME_PATH SDK)
2020
target_compile_definitions(DumpSource2-${GAME} PRIVATE GAME_${GAME} GAME_PATH="${GAME_PATH}")
2121
endfunction()
2222

23+
# build_game(GAME, GAME_PATH, SDK) - SDK selects which vendor/hl2sdk-* to link
2324
build_game(CS2 csgo CS2)
24-
build_game(DOTA dota CS2)
25+
build_game(DOTA dota DOTA)
2526
build_game(DEADLOCK citadel CS2)
2627

2728
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCES_LIST})
28-
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS_LIST})
29+
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Header Files" FILES ${HEADERS_LIST})

vendor/fmt

Submodule fmt updated 82 files

vendor/hl2sdk-cs2

vendor/hl2sdk-deadlock

Submodule hl2sdk-deadlock updated 81 files

vendor/hl2sdk-dota

Submodule hl2sdk-dota updated 69 files

vendor/spdlog

Submodule spdlog updated 118 files

0 commit comments

Comments
 (0)