mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-27 14:08:39 +01:00
Implement the promoitems functions.
This commit is contained in:
parent
833510fbf1
commit
39cb2c7c17
1 changed files with 19 additions and 2 deletions
|
@ -453,6 +453,11 @@ STEAM_METHOD_DESC(GrantPromoItems() checks the list of promotional items for whi
|
||||||
bool GrantPromoItems( SteamInventoryResult_t *pResultHandle )
|
bool GrantPromoItems( SteamInventoryResult_t *pResultHandle )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("GrantPromoItems\n");
|
PRINT_DEBUG("GrantPromoItems\n");
|
||||||
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
struct Steam_Inventory_Requests* request = new_inventory_result(false);
|
||||||
|
|
||||||
|
if (pResultHandle != nullptr)
|
||||||
|
*pResultHandle = request->inventory_result;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -464,13 +469,25 @@ bool GrantPromoItems( SteamInventoryResult_t *pResultHandle )
|
||||||
bool AddPromoItem( SteamInventoryResult_t *pResultHandle, SteamItemDef_t itemDef )
|
bool AddPromoItem( SteamInventoryResult_t *pResultHandle, SteamItemDef_t itemDef )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("AddPromoItem\n");
|
PRINT_DEBUG("AddPromoItem\n");
|
||||||
return false;
|
//TODO
|
||||||
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
struct Steam_Inventory_Requests* request = new_inventory_result(false);
|
||||||
|
|
||||||
|
if (pResultHandle != nullptr)
|
||||||
|
*pResultHandle = request->inventory_result;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AddPromoItems( SteamInventoryResult_t *pResultHandle, STEAM_ARRAY_COUNT(unArrayLength) const SteamItemDef_t *pArrayItemDefs, uint32 unArrayLength )
|
bool AddPromoItems( SteamInventoryResult_t *pResultHandle, STEAM_ARRAY_COUNT(unArrayLength) const SteamItemDef_t *pArrayItemDefs, uint32 unArrayLength )
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("AddPromoItems\n");
|
PRINT_DEBUG("AddPromoItems\n");
|
||||||
return false;
|
//TODO
|
||||||
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
struct Steam_Inventory_Requests* request = new_inventory_result(false);
|
||||||
|
|
||||||
|
if (pResultHandle != nullptr)
|
||||||
|
*pResultHandle = request->inventory_result;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue