mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-24 17:04:18 +00:00
Added GetPlayerAuthToken function to advanced identity
Now forcing not passing in a player controller if hosting dedicated. Former-commit-id: 7a6578b7ce8d98c87e33ef4623fddc2e39be31ce
This commit is contained in:
@@ -73,13 +73,13 @@ void UCreateSessionCallbackProxyAdvanced::Activate()
|
||||
for (int i = 0; i < ExtraSettings.Num(); i++)
|
||||
{
|
||||
ExtraSetting.Data = ExtraSettings[i].Data;
|
||||
// ViaOnlineServiceAndPing
|
||||
// ViaOnlineServiceAndPing
|
||||
ExtraSetting.AdvertisementType = EOnlineDataAdvertisementType::ViaOnlineService;
|
||||
Settings.Settings.Add(ExtraSettings[i].Key, ExtraSetting);
|
||||
}
|
||||
|
||||
|
||||
if (PlayerControllerWeakPtr.IsValid() && Helper.UserID.IsValid())
|
||||
|
||||
if (!bDedicatedServer && PlayerControllerWeakPtr.IsValid() && Helper.UserID.IsValid())
|
||||
Sessions->CreateSession(*Helper.UserID, GameSessionName, Settings);
|
||||
else
|
||||
Sessions->CreateSession(0, GameSessionName, Settings);
|
||||
|
||||
Reference in New Issue
Block a user