Created
April 16, 2015 00:42
-
-
Save gotwig/93bf3f1994cc30971df7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TArray<FString> UUBP_FuncLib::SessionSettingsToString() | |
{ | |
auto SessionsS = IOnlineSubsystem::Get()->GetSessionInterface(); | |
TArray<FString> SessionSettings = TArray<FString>(); | |
UE_LOG(LogTemp, Error, TEXT("PRELOOP")); | |
SessionSettings.Add("FirstTESTNOTWORKINGENTRY"); | |
FOnlineSessionSettings * stuffSettings = SessionsS->GetSessionSettings(GameSessionName); | |
FSessionSettings stuffSettingsDeeper = stuffSettings->Settings; | |
for (FSessionSettings::TConstIterator It(stuffSettingsDeeper); It; ++It) | |
{ | |
FName Key = It.Key(); | |
const FOnlineSessionSetting& Setting = It.Value(); | |
UE_LOG(LogTemp, Error, TEXT("LOOP")); | |
SessionSettings.Add(Key.ToString()); | |
SessionSettings.Add(Setting.ToString()); | |
} | |
return SessionSettings; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment