mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-26 14:32:54 -05:00
Added address map args
This commit is contained in:
@@ -5,7 +5,7 @@ using namespace smoke_api;
|
||||
|
||||
VIRTUAL(bool) IClientAppManager_IsAppDlcInstalled(PARAMS(AppId_t app_id, AppId_t dlc_id)) {
|
||||
return steam_apps::IsDlcUnlocked(__func__, app_id, dlc_id, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientAppManager_IsAppDlcInstalled)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientAppManager_IsAppDlcInstalled)
|
||||
|
||||
return IClientAppManager_IsAppDlcInstalled_o(ARGS(app_id, dlc_id));
|
||||
});
|
||||
|
||||
@@ -5,7 +5,7 @@ using namespace smoke_api;
|
||||
|
||||
VIRTUAL(int) IClientApps_GetDLCCount(PARAMS(AppId_t appId)) {
|
||||
return steam_apps::GetDLCCount(__func__, appId, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientApps_GetDLCCount)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientApps_GetDLCCount)
|
||||
|
||||
return IClientApps_GetDLCCount_o(ARGS(appId));
|
||||
});
|
||||
@@ -22,7 +22,7 @@ VIRTUAL(bool) IClientApps_BGetDLCDataByIndex(
|
||||
)
|
||||
) {
|
||||
return steam_apps::GetDLCDataByIndex(__func__, appID, iDLC, pDlcID, pbAvailable, pchName, cchNameBufferSize, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientApps_BGetDLCDataByIndex)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientApps_BGetDLCDataByIndex)
|
||||
|
||||
return IClientApps_BGetDLCDataByIndex_o(
|
||||
ARGS(appID, iDLC, pDlcID, pbAvailable, pchName, cchNameBufferSize)
|
||||
|
||||
@@ -5,7 +5,7 @@ using namespace smoke_api;
|
||||
|
||||
VIRTUAL(EResult) IClientInventory_GetResultStatus(PARAMS(SteamInventoryResult_t resultHandle)) {
|
||||
return steam_inventory::GetResultStatus(__func__, resultHandle, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetResultStatus)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetResultStatus)
|
||||
|
||||
return IClientInventory_GetResultStatus_o(ARGS(resultHandle));
|
||||
});
|
||||
@@ -22,7 +22,7 @@ VIRTUAL(bool) IClientInventory_GetResultItems(
|
||||
return steam_inventory::GetResultItems(
|
||||
__func__, resultHandle, pOutItemsArray, punOutItemsArraySize,
|
||||
[&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetResultItems)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetResultItems)
|
||||
|
||||
*punOutItemsArraySize = item_count;
|
||||
return IClientInventory_GetResultItems_o(
|
||||
@@ -30,7 +30,7 @@ VIRTUAL(bool) IClientInventory_GetResultItems(
|
||||
);
|
||||
},
|
||||
[&](SteamItemDef_t* pItemDefIDs, uint32_t* punItemDefIDsArraySize) {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetItemDefinitionIDs)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetItemDefinitionIDs)
|
||||
|
||||
return IClientInventory_GetItemDefinitionIDs_o(
|
||||
ARGS(pItemDefIDs, *punItemDefIDsArraySize, punItemDefIDsArraySize)
|
||||
@@ -51,7 +51,7 @@ VIRTUAL(bool) IClientInventory_GetResultItemProperty(
|
||||
) {
|
||||
return steam_inventory::GetResultItemProperty(
|
||||
__func__, resultHandle, unItemIndex, pchPropertyName, pchValueBuffer, punValueBufferSizeOut, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetResultItemProperty)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetResultItemProperty)
|
||||
|
||||
*punValueBufferSizeOut = item_count;
|
||||
return IClientInventory_GetResultItemProperty_o(
|
||||
@@ -68,7 +68,7 @@ VIRTUAL(bool) IClientInventory_CheckResultSteamID(
|
||||
)
|
||||
) {
|
||||
return steam_inventory::CheckResultSteamID(__func__, resultHandle, steamIDExpected, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_CheckResultSteamID)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_CheckResultSteamID)
|
||||
|
||||
return IClientInventory_CheckResultSteamID_o(ARGS(resultHandle, steamIDExpected));
|
||||
});
|
||||
@@ -76,7 +76,7 @@ VIRTUAL(bool) IClientInventory_CheckResultSteamID(
|
||||
|
||||
VIRTUAL(bool) IClientInventory_GetAllItems(PARAMS(SteamInventoryResult_t* pResultHandle)) {
|
||||
return steam_inventory::GetAllItems(__func__, pResultHandle, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetAllItems)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetAllItems)
|
||||
|
||||
return IClientInventory_GetAllItems_o(ARGS(pResultHandle));
|
||||
});
|
||||
@@ -90,7 +90,7 @@ VIRTUAL(bool) IClientInventory_GetItemsByID(
|
||||
)
|
||||
) {
|
||||
return steam_inventory::GetItemsByID(__func__, pResultHandle, pInstanceIDs, unCountInstanceIDs, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetItemsByID)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetItemsByID)
|
||||
|
||||
return IClientInventory_GetItemsByID_o(ARGS(pResultHandle, pInstanceIDs, unCountInstanceIDs));
|
||||
});
|
||||
@@ -105,7 +105,7 @@ VIRTUAL(bool) IClientInventory_SerializeResult(
|
||||
)
|
||||
) {
|
||||
return steam_inventory::SerializeResult(__func__, resultHandle, pOutBuffer, punOutBufferSize, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_SerializeResult)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_SerializeResult)
|
||||
|
||||
*punOutBufferSize = buffer_size;
|
||||
return IClientInventory_SerializeResult_o(ARGS(resultHandle, pOutBuffer, buffer_size, punOutBufferSize));
|
||||
@@ -120,7 +120,7 @@ VIRTUAL(bool) IClientInventory_GetItemDefinitionIDs(
|
||||
)
|
||||
) {
|
||||
return steam_inventory::GetItemDefinitionIDs(__func__, pItemDefIDs, p_array_size, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientInventory_GetItemDefinitionIDs)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientInventory_GetItemDefinitionIDs)
|
||||
|
||||
*p_array_size = item_count;
|
||||
return IClientInventory_GetItemDefinitionIDs_o(ARGS(pItemDefIDs, item_count, p_array_size));
|
||||
|
||||
@@ -5,7 +5,7 @@ using namespace smoke_api;
|
||||
|
||||
VIRTUAL(bool) IClientUser_BIsSubscribedApp(PARAMS(AppId_t app_id)) {
|
||||
return steam_apps::IsDlcUnlocked(__func__, 0, app_id, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientUser_BIsSubscribedApp)
|
||||
GET_ORIGINAL_HOOKED_FUNCTION(IClientUser_BIsSubscribedApp)
|
||||
|
||||
return IClientUser_BIsSubscribedApp_o(ARGS(app_id));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user