Skip to content

Commit

Permalink
Update ZHMMod SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Deji69 committed Feb 14, 2024
1 parent 85637a9 commit d9027b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.15)
project(Stealthometer CXX)

# Find latest version at https://github.com/OrfeasZ/ZHMModSDK/releases
set(ZHMMODSDK_VER "v2.0.0-rc.1")
set(ZHMMODSDK_VER "v2.0.0-rc.3")
include(cmake/setup-zhmmodsdk.cmake)

# Download CMakeRC resource compiler
Expand All @@ -23,10 +23,14 @@ add_library(Stealthometer SHARED
"src/Stealthometer.h"
"src/Stats.h" "src/StatWindow.h" "src/StatWindow.cpp" "src/FixMinMax.h"
"src/Rating.h" "src/Rating.cpp" "src/PlayStyleRating.h" "src/util.h" "src/Events.h" "src/EventSystem.h" "src/EventSystem.cpp" "src/Enums.h")

find_package(directx-headers CONFIG REQUIRED)

target_link_libraries(Stealthometer PRIVATE
ZHMModSDK
stealthometer::rc
Microsoft::DirectX-Guids
Microsoft::DirectX-Headers
)

install(TARGETS Stealthometer
Expand Down
2 changes: 1 addition & 1 deletion src/Stealthometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ auto Stealthometer::SetupEvents() -> void {
{"setpieceType_metricvalue", ev.Value.setpieceType_metricvalue},
{"Item_triggered_metricvalue", ev.Value.Item_triggered_metricvalue},
{"RepositoryId", ev.Value.RepositoryId},
});
}.dump());
});
//eventName == "ItemDestroyed" // broken camcorder
//eventName == "TargetEscapeFoiled" // Yuki killed in Gondola
Expand Down
2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stealthometer",
"version": "1.0.0",
"dependencies": []
"dependencies": [ "directx-headers" ]
}

0 comments on commit d9027b1

Please sign in to comment.