You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
50 lines
1.3 KiB
C++
50 lines
1.3 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Iris/IrisConfig.h"
|
|
#include "Logging/LogScopedVerbosityOverride.h"
|
|
#include "Misc/CommandLine.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "Net/Core/Trace/Private/NetTraceInternal.h"
|
|
#include "ProfilingDebugging/TraceAuxiliary.h"
|
|
#include "SlateGlobals.h"
|
|
#include "Styling/SlateWidgetStyleContainerBase.h"
|
|
#include "TestCommon/Initialization.h"
|
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
GROUP_BEFORE_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
// Initialize trace
|
|
FString Parameter;
|
|
if (FParse::Value(FCommandLine::Get(), TEXT("-trace="), Parameter, false))
|
|
{
|
|
FTraceAuxiliary::Initialize(FCommandLine::Get());
|
|
FTraceAuxiliary::TryAutoConnect();
|
|
}
|
|
|
|
#if UE_NET_TRACE_ENABLED
|
|
uint32 NetTraceVerbosity;
|
|
if(FParse::Value(FCommandLine::Get(), TEXT("-nettrace="), NetTraceVerbosity))
|
|
{
|
|
FNetTrace::SetTraceVerbosity(NetTraceVerbosity);
|
|
}
|
|
#endif
|
|
|
|
UE::Net::SetUseIrisReplication(true);
|
|
|
|
{
|
|
// Silence some warnings during initialization unrelated to the replication system
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlate, ELogVerbosity::Error);
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogSlateStyle, ELogVerbosity::Error);
|
|
LOG_SCOPE_VERBOSITY_OVERRIDE(LogUObjectGlobals, ELogVerbosity::Error);
|
|
InitAll(true, true);
|
|
}
|
|
|
|
FModuleManager::Get().LoadModule(TEXT("IrisCore"));
|
|
}
|
|
|
|
GROUP_AFTER_GLOBAL(Catch::DefaultGroup)
|
|
{
|
|
CleanupAll();
|
|
}
|