39 lines
1.1 KiB
C++
39 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "AndroidFileServerRuntimeSettings.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(AndroidFileServerRuntimeSettings)
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
// 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(TEXT(""), false);
|
|
}
|
|
}
|