Refactored hook calls

This commit is contained in:
acidicoala
2023-01-06 09:54:51 +03:00
parent 011f3fac5d
commit eaca0bec34
22 changed files with 158 additions and 161 deletions

View File

@@ -108,7 +108,8 @@ namespace steam_apps {
bool IsDlcUnlocked(
const String& function_name,
AppId_t app_id, AppId_t dlc_id,
AppId_t app_id,
AppId_t dlc_id,
const std::function<bool()>& original_function
) {
try {

View File

@@ -1,8 +1,8 @@
#include <smoke_api/smoke_api.hpp>
#include <koalabox/koalabox.hpp>
#include <steam_functions/steam_functions.hpp>
namespace steam_client {
using namespace smoke_api;
using namespace koalabox;
void* GetGenericInterface(
const String& function_name,

View File

@@ -1,9 +1,8 @@
#include <smoke_api/smoke_api.hpp>
#include <koalabox/koalabox.hpp>
#include <steam_functions/steam_functions.hpp>
using namespace smoke_api;
namespace steam_user {
using namespace koalabox;
EUserHasLicenseForAppResult UserHasLicenseForApp(
const String& function_name,