From 02ee5f9a6d200ff4680da2a59a63775bcc33818b Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Sat, 20 Jun 2020 21:17:31 -0400 Subject: [PATCH] Implement the TriggerItemDrop function. --- dll/steam_inventory.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dll/steam_inventory.h b/dll/steam_inventory.h index ae66de8..827abf8 100644 --- a/dll/steam_inventory.h +++ b/dll/steam_inventory.h @@ -540,6 +540,11 @@ bool TriggerItemDrop( SteamInventoryResult_t *pResultHandle, SteamItemDef_t drop { PRINT_DEBUG("TriggerItemDrop %p %i\n", pResultHandle, dropListDefinition); //TODO: if gameserver return false + std::lock_guard lock(global_mutex); + struct Steam_Inventory_Requests* request = new_inventory_result(false); + + if (pResultHandle != nullptr) + *pResultHandle = request->inventory_result; return true; }