You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
36 lines
1.0 KiB
C++
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();
|
||
|
|
}
|
||
|
|
}
|