Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1117,10 +1117,15 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
NGMP_OnlineServices_LobbyInterface* pLobbyInterface = NGMP_OnlineServicesManager::GetInterface<NGMP_OnlineServices_LobbyInterface>();

// cannot connect to the lobby we joined
if (pLobbyInterface != nullptr)
{

pLobbyInterface->RegisterForCannotConnectToLobbyCallback([](void)
{
// TODO_QUICKMATCH: Show error message + stop matchmaking + enable buttons again
});
}


// get playlist list
NGMP_OnlineServices_MatchmakingInterface* pMatchmakingInterface = NGMP_OnlineServicesManager::GetInterface<NGMP_OnlineServices_MatchmakingInterface>();
Expand Down Expand Up @@ -1331,12 +1336,14 @@ void WOLQuickMatchMenuInit( WindowLayout *layout, void *userData )
buttonText.format(L"%s", TheGameText->fetch("GUI:Buddies").str());
}
buttonBuddies->winSetText(buttonText);


}
});
}

// And also initialize it
if (buttonBuddies != nullptr && pSocialInterface->GetNumTotalNotifications() > 0)
if (buttonBuddies != nullptr && pSocialInterface != nullptr && pSocialInterface->GetNumTotalNotifications() > 0)
{
UnicodeString buttonText;
buttonText.format(L"%s [%d]", TheGameText->fetch("GUI:Buddies").str(), pSocialInterface->GetNumTotalNotifications());
Expand Down Expand Up @@ -2489,4 +2496,5 @@ WindowMsgHandledType WOLQuickMatchMenuSystem( GameWindow *window, UnsignedInt ms

return MSG_HANDLED;
}


Expand Down
Loading