From 37261bedb88996bedf85cf9fb19bb754e05e4989 Mon Sep 17 00:00:00 2001 From: otavepto Date: Sat, 16 Mar 2024 05:20:40 +0200 Subject: [PATCH] * don't run callbacks in steam_utils::runframe() * initialize a param in steam_utils::isapicompleted() --- dll/steam_utils.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dll/steam_utils.cpp b/dll/steam_utils.cpp index 69a64a04..76e302a4 100644 --- a/dll/steam_utils.cpp +++ b/dll/steam_utils.cpp @@ -149,6 +149,8 @@ bool Steam_Utils::IsAPICallCompleted( SteamAPICall_t hSteamAPICall, bool *pbFail { PRINT_DEBUG("Steam_Utils::IsAPICallCompleted: %llu\n", hSteamAPICall); std::lock_guard lock(global_mutex); + if (pbFailed) *pbFailed = true; + if (hSteamAPICall == 1) { //bug ? soul calibur 6 calls this function with the return value 1 of Steam_User_Stats::RequestCurrentStats and expects this function to return true if (pbFailed) *pbFailed = true; return true; @@ -184,7 +186,9 @@ STEAM_PRIVATE_API( void Steam_Utils::RunFrame() { PRINT_DEBUG("Steam_Utils::RunFrame\n"); - get_steam_client()->RunCallbacks(true, false); + std::lock_guard lock(global_mutex); + // Steam_Client *client = get_steam_client(); + // client ->RunCallbacks(true, false, false); } )