mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 19:25:35 +08:00
* don't run callbacks in steam_utils::runframe()
* initialize a param in steam_utils::isapicompleted()
This commit is contained in:
parent
09979e8eca
commit
37261bedb8
@ -149,6 +149,8 @@ bool Steam_Utils::IsAPICallCompleted( SteamAPICall_t hSteamAPICall, bool *pbFail
|
|||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Utils::IsAPICallCompleted: %llu\n", hSteamAPICall);
|
PRINT_DEBUG("Steam_Utils::IsAPICallCompleted: %llu\n", hSteamAPICall);
|
||||||
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
std::lock_guard<std::recursive_mutex> 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 (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;
|
if (pbFailed) *pbFailed = true;
|
||||||
return true;
|
return true;
|
||||||
@ -184,7 +186,9 @@ STEAM_PRIVATE_API(
|
|||||||
void Steam_Utils::RunFrame()
|
void Steam_Utils::RunFrame()
|
||||||
{
|
{
|
||||||
PRINT_DEBUG("Steam_Utils::RunFrame\n");
|
PRINT_DEBUG("Steam_Utils::RunFrame\n");
|
||||||
get_steam_client()->RunCallbacks(true, false);
|
std::lock_guard<std::recursive_mutex> lock(global_mutex);
|
||||||
|
// Steam_Client *client = get_steam_client();
|
||||||
|
// client ->RunCallbacks(true, false, false);
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user