Steamworks.NET icon indicating copy to clipboard operation
Steamworks.NET copied to clipboard

GetFavoriteGame doesn't return valid app id

Open jswigart opened this issue 3 years ago • 0 comments

Given the following code, GetFavoriteGame doesn't return a valid AppId. Every entry is app id 0.

ALSO: the connPort parameter is not the same port that was passed in with AddFavoriteGame. It seems that connPort here is using the queryPort from AddFavoriteGame

 for (int s = 0; s < Steamworks.SteamMatchmaking.GetFavoriteGameCount(); ++s)
{
    AppId_t appId;
    uint ipAddr, lastPlayedTime;
    ushort connPort, queryPort;
    uint flags;
    if (Steamworks.SteamMatchmaking.GetFavoriteGame(s, out appId, out ipAddr, out connPort, out queryPort, out flags, out lastPlayedTime))
    {
        _log.Error($"Fav({s}): AppId {appId.m_AppId}, Ip {ipAddr}, ConnPort {connPort}, QueryPort {queryPort}, Flags {flags}, LastPlayed {lastPlayedTime}");
    }
}

jswigart avatar Aug 29 '22 01:08 jswigart