Current final tweaks to Shooter Game Mode
This commit is contained in:
@@ -8,8 +8,7 @@
|
||||
#include "openssl/sha.h"
|
||||
#include "GameLiftServerSDK.h"
|
||||
#include "GameLiftServerSDKModels.h"
|
||||
#include "DSP/BufferDiagnostics.h"
|
||||
#include "Misc/TypeContainer.h"
|
||||
|
||||
|
||||
|
||||
DEFINE_LOG_CATEGORY(LogShooterGameMode);
|
||||
@@ -32,7 +31,14 @@ void AShooterGameMode::InitGame(const FString& MapName, const FString& Options,
|
||||
{
|
||||
Super::InitGame(MapName, Options, ErrorMessage);
|
||||
CachedCommandLine = FCommandLine::Get();
|
||||
GameLiftConfig.ServerPort = cmdlineparser::details::GetConfiguredOrDefaultPort(CachedCommandLine, TEXT("port"));
|
||||
|
||||
const FPortResult PortResult = cmdlineparser::details::GetConfiguredOrDefaultPort(CachedCommandLine, TEXT("port"));;
|
||||
if (PortResult.bUsedDefaultPort)
|
||||
{
|
||||
UE_LOGFMT (LogShooterGameMode, Warning, "{0}", PortResult.WarningMessage);
|
||||
}
|
||||
|
||||
GameLiftConfig.ServerPort = PortResult.Port;
|
||||
if (FParse::Param(*CachedCommandLine, TEXT("glAnywhereFleet")))
|
||||
{
|
||||
UE_LOGFMT(LogShooterGameMode, Log, "Fleet type: Anywhere");
|
||||
@@ -59,7 +65,7 @@ FString AShooterGameMode::GetSHA256Hash(const FString& InString)
|
||||
|
||||
FTCHARToUTF8 Utf8(InString);
|
||||
const uint8* Bytes = reinterpret_cast<const uint8*>(Utf8.Get());
|
||||
uint32 Length = Utf8.Length() * sizeof(UTF8CHAR);
|
||||
uint32 Length = Utf8.Length();
|
||||
|
||||
|
||||
SHA256_CTX Sha256Context;
|
||||
|
||||
Reference in New Issue
Block a user