mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-25 05:52:51 -05:00
Refactor
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
#include <steam_impl/steam_apps.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
@@ -10,4 +10,4 @@ VIRTUAL(bool) IClientAppManager_IsAppDlcInstalled(
|
||||
)
|
||||
) {
|
||||
return steam_apps::IsDlcUnlocked(__func__, app_id, dlc_id);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
#include <steam_impl/steam_apps.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
#include <steam_impl/steam_inventory.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
@@ -132,4 +132,4 @@ VIRTUAL(bool) IClientInventory_GetItemDefinitionIDs(
|
||||
*p_array_size = item_count;
|
||||
return IClientInventory_GetItemDefinitionIDs_o(ARGS(pItemDefIDs, item_count, p_array_size));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#include <smoke_api/smoke_api.hpp>
|
||||
#include <steam_impl/steam_impl.hpp>
|
||||
#include <steam_impl/steam_apps.hpp>
|
||||
|
||||
using namespace smoke_api;
|
||||
|
||||
// TODO: Implement?
|
||||
// TODO: Hook?
|
||||
VIRTUAL(bool) IClientUser_IsSubscribedApp(PARAMS(AppId_t app_id)) { // NOLINT(misc-unused-parameters)
|
||||
return steam_apps::IsDlcUnlocked(__func__, 0, app_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user