From 24e3777caa503f743074f835097b841114b15083 Mon Sep 17 00:00:00 2001 From: Dale Glass Date: Tue, 5 Dec 2023 15:48:57 -0800 Subject: [PATCH] Fix Steam API plugin for latest SDK --- plugins/steamClient/src/SteamAPIPlugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/steamClient/src/SteamAPIPlugin.cpp b/plugins/steamClient/src/SteamAPIPlugin.cpp index 853a53e881..b6e5b2ea77 100644 --- a/plugins/steamClient/src/SteamAPIPlugin.cpp +++ b/plugins/steamClient/src/SteamAPIPlugin.cpp @@ -73,7 +73,7 @@ HAuthTicket SteamTicketRequests::startRequest(TicketRequestCallback callback) { uint32 ticketSize { 0 }; char ticket[MAX_TICKET_SIZE]; - auto authTicket = SteamUser()->GetAuthSessionTicket(ticket, MAX_TICKET_SIZE, &ticketSize); + auto authTicket = SteamUser()->GetAuthSessionTicket(ticket, MAX_TICKET_SIZE, &ticketSize, NULL); qDebug() << "Got Steam auth session ticket:" << authTicket; if (authTicket == k_HAuthTicketInvalid) { @@ -282,7 +282,8 @@ void SteamAPIPlugin::runCallbacks() { return; } - Steam_RunCallbacks(steamPipe, false); + //Steam_RunCallbacks(steamPipe, false); + SteamAPI_RunCallbacks(); } void SteamAPIPlugin::requestTicket(TicketRequestCallback callback) {