Skip to content

Commit eac7e87

Browse files
committed
Fixed inventory regression
1 parent 09e1187 commit eac7e87

4 files changed

Lines changed: 17 additions & 4 deletions

File tree

res/SmokeAPI.schema.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
},
1212
"$version": {
1313
"type": "integer",
14-
"minimum": 0,
15-
"default": 4,
14+
"const": 4,
1615
"description": "A technical field reserved for tools like GUI config editors. Do not modify this value."
1716
},
1817
"logging": {

src/smoke_api/smoke_api.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ namespace smoke_api {
8080
}
8181

8282
LOG_INFO("{} v{} | Built at '{}'", PROJECT_NAME, PROJECT_VERSION, __TIMESTAMP__);
83-
8483
LOG_DEBUG("Parsed config:\n{}", nlohmann::ordered_json(config::instance).dump(2));
8584

8685
const auto exe_path = kb::win::get_module_path(nullptr);

src/steam_api/steam_interface.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ namespace {
7777
}
7878
}
7979
},
80+
{
81+
STEAM_INVENTORY,
82+
interface_data{
83+
.fallback_version = "STEAMINVENTORY_INTERFACE_V003",
84+
.entry_map = {
85+
ENTRY(ISteamInventory, GetResultStatus),
86+
ENTRY(ISteamInventory, GetResultItems),
87+
ENTRY(ISteamInventory, CheckResultSteamID),
88+
ENTRY(ISteamInventory, GetAllItems),
89+
ENTRY(ISteamInventory, GetItemsByID),
90+
ENTRY(ISteamInventory, SerializeResult),
91+
ENTRY(ISteamInventory, GetItemDefinitionIDs),
92+
}
93+
}
94+
},
8095
{
8196
STEAM_USER,
8297
interface_data{

0 commit comments

Comments
 (0)