mirror of https://github.com/acidicoala/SmokeAPI
Added `IClientApps`, `IClientAppManager`, `IClientUser`
parent
be9fa39508
commit
5b76d155a8
@ -1 +1 @@
|
||||
Subproject commit 67545f50bc9e557eaf43a74395cc1461416d0035
|
||||
Subproject commit d9b0d1a00beb065a9a931a60ef615ce8d1fc7164
|
@ -0,0 +1,13 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
VIRTUAL(bool) IClientAppManager_IsAppDlcInstalled(
|
||||
PARAMS( // NOLINT(misc-unused-parameters)
|
||||
AppId_t app_id,
|
||||
AppId_t dlc_id
|
||||
)
|
||||
) {
|
||||
return steam_apps::IsDlcUnlocked(__func__, app_id, dlc_id);
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
VIRTUAL(int) IClientApps_GetDLCCount(PARAMS(AppId_t appId)) {
|
||||
return steam_apps::GetDLCCount(__func__, appId, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientApps_GetDLCCount)
|
||||
|
||||
return IClientApps_GetDLCCount_o(ARGS(appId));
|
||||
});
|
||||
}
|
||||
|
||||
VIRTUAL(bool) IClientApps_BGetDLCDataByIndex(
|
||||
PARAMS(
|
||||
AppId_t appID,
|
||||
int iDLC,
|
||||
AppId_t* pDlcID,
|
||||
bool* pbAvailable,
|
||||
char* pchName,
|
||||
int cchNameBufferSize
|
||||
)
|
||||
) {
|
||||
return steam_apps::GetDLCDataByIndex(__func__, appID, iDLC, pDlcID, pbAvailable, pchName, cchNameBufferSize, [&]() {
|
||||
GET_ORIGINAL_VIRTUAL_FUNCTION(IClientApps_BGetDLCDataByIndex)
|
||||
|
||||
return IClientApps_BGetDLCDataByIndex_o(
|
||||
ARGS(appID, iDLC, pDlcID, pbAvailable, pchName, cchNameBufferSize)
|
||||
);
|
||||
});
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
VIRTUAL(bool) IClientUser_IsSubscribedApp(PARAMS(AppId_t app_id)) { // NOLINT(misc-unused-parameters)
|
||||
return steam_apps::IsDlcUnlocked(__func__, 0, app_id);
|
||||
}
|
Loading…
Reference in New Issue