Compare commits
1 Commits
new/API_Ga
...
4121a3925f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4121a3925f |
@@ -6,9 +6,10 @@
|
|||||||
#include "GameLiftClpTypes.h"
|
#include "GameLiftClpTypes.h"
|
||||||
#include "GameLift/GameLiftClp.h"
|
#include "GameLift/GameLiftClp.h"
|
||||||
#include "openssl/sha.h"
|
#include "openssl/sha.h"
|
||||||
#include "GameLiftServerSDK.h"
|
|
||||||
#include "GameLiftServerSDKModels.h"
|
|
||||||
|
|
||||||
|
#if WITH_GAMELIFT
|
||||||
|
#include "GameLiftServerSDK.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
DEFINE_LOG_CATEGORY(LogShooterGameMode);
|
DEFINE_LOG_CATEGORY(LogShooterGameMode);
|
||||||
@@ -23,7 +24,18 @@ void AShooterGameMode::BeginPlay()
|
|||||||
{
|
{
|
||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
#if WITH_GAMELIFT
|
#if WITH_GAMELIFT
|
||||||
InitGameLift();
|
if ((GameLiftConfig.bIsAnywhereFleet && GameLiftConfig.bAllOptionsFound) ||
|
||||||
|
!GameLiftConfig.bIsAnywhereFleet)
|
||||||
|
{
|
||||||
|
InitGameLift();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
{
|
||||||
|
UE_LOG(LogShooterGameMode, Error, TEXT("GameLift Anywhere fleet missing required options. Exiting."));
|
||||||
|
FGenericPlatformMisc::RequestExit(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,6 +342,8 @@ void AShooterGameMode::LogAnywhereFleetParameters()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WITH_GAMELIFT
|
||||||
|
|
||||||
void AShooterGameMode::LogServerParameters(const FServerParameters& InServerParameters)
|
void AShooterGameMode::LogServerParameters(const FServerParameters& InServerParameters)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -360,6 +374,8 @@ void AShooterGameMode::LogServerParameters(const FServerParameters& InServerPara
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
FString AShooterGameMode::GetValueOrHash(const FString& Value)
|
FString AShooterGameMode::GetValueOrHash(const FString& Value)
|
||||||
{
|
{
|
||||||
#if UE_BUILD_DEBUG || UE_BUILD_DEVELOPMENT
|
#if UE_BUILD_DEBUG || UE_BUILD_DEVELOPMENT
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ FPortResult cmdlineparser::details::GetConfiguredOrDefaultPort(const FString& Co
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
PortResult.bUsedDefaultPort = true;
|
PortResult.bUsedDefaultPort = true;
|
||||||
PortResult.WarningMessage = FString("Command Line Option for Port is out of ranged... Using Default Port %s", PortResult.Port);
|
PortResult.WarningMessage = FString::Printf(TEXT("Command Line Option for Port is out of ranged... Using Default Port %d"), PortResult.Port);
|
||||||
return PortResult;
|
return PortResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,9 @@ private:
|
|||||||
|
|
||||||
bool GetAnywhereFleetParameters(const FString& CommandLineString);
|
bool GetAnywhereFleetParameters(const FString& CommandLineString);
|
||||||
void LogAnywhereFleetParameters();
|
void LogAnywhereFleetParameters();
|
||||||
|
#if WITH_GAMELIFT
|
||||||
static void LogServerParameters(const FServerParameters& InServerParameters);
|
static void LogServerParameters(const FServerParameters& InServerParameters);
|
||||||
|
#endif
|
||||||
static FString GetValueOrHash(const FString& Value);
|
static FString GetValueOrHash(const FString& Value);
|
||||||
|
|
||||||
TSharedPtr<FProcessParameters> ProcessParameters;
|
TSharedPtr<FProcessParameters> ProcessParameters;
|
||||||
|
|||||||
Reference in New Issue
Block a user