Files
UnrealEngineUWP/Engine/Plugins/Runtime/AndroidFileServer/Source/AndroidFileServerEditor/Private/AndroidFileServerRuntimeSettings.cpp
chris babcock 9c4a0b5605 Android file server for deployment and installs
#jira UE-120581
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter
#preflight https://horde.devtools.epicgames.com/job/6216bf01476ef5d8a211663b


#ROBOMERGE-AUTHOR: chris.babcock
#ROBOMERGE-SOURCE: CL 19106332 via CL 19106499 via CL 19106550 via CL 19106616 via CL 19110163
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19151499 by chris babcock in ue5-main branch]
2022-02-25 13:24:48 -05:00

36 lines
1.0 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "AndroidFileServerRuntimeSettings.h"
//////////////////////////////////////////////////////////////////////////
// UAndroidFileServerRuntimeSettings
UAndroidFileServerRuntimeSettings::UAndroidFileServerRuntimeSettings(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
, bEnablePlugin(true)
, bAllowNetworkConnection(true)
, SecurityToken(TEXT("[AUTO]"))
, bIncludeInShipping(false)
, bAllowExternalStartInShipping(false)
, bCompileAFSProject(false)
, bUseCompression(false)
, bLogFiles(false)
, bReportStats(false)
, ConnectionType(EAFSConnectionType::USBOnly)
, bUseManualIPAddress(false)
, ManualIPAddress(TEXT(""))
{
}
void UAndroidFileServerRuntimeSettings::PostInitProperties()
{
Super::PostInitProperties();
// Auto-generate a security token first time
if (SecurityToken == "[AUTO]")
{
FGuid UniqueId = FGuid::NewGuid();
SecurityToken = UniqueId.ToString();
TryUpdateDefaultConfigFile();
}
}