Skip to content
Snippets Groups Projects
Commit 4bb373d3 authored by Simon Oehrl's avatar Simon Oehrl
Browse files

Merge branch 'feature/nonNDisplayfix' into 'master'

Ready for UE 4.25 // DisplayCluster is not necessary

See merge request VR-Group/unreal-development/universallogging!5
parents 572e7165 afd50517
No related branches found
No related tags found
1 merge request!5Ready for UE 4.25 // DisplayCluster is not necessary
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
#include "UniversalLogging.h" #include "UniversalLogging.h"
#include "HAL/PlatformFilemanager.h" #include "HAL/PlatformFilemanager.h"
#include "Paths.h" #include "Misc/Paths.h"
#include "IPlatformFileProfilerWrapper.h" #include "HAL/IPlatformFileProfilerWrapper.h"
LogStreamImpl::LogStreamImpl(const FString Filepath, const FString Filename, const bool bPer_Session, const bool bLogOnMaster, const bool bLogOnSlaves) LogStreamImpl::LogStreamImpl(const FString Filepath, const FString Filename, const bool bPer_Session, const bool bLogOnMaster, const bool bLogOnSlaves)
: Filepath(Filepath) : Filepath(Filepath)
......
#pragma once #pragma once
#include "Color.h" #include "Math/Color.h"
class LogStreamImpl : public ILogStream class LogStreamImpl : public ILogStream
{ {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
#include "CoreMinimal.h" #include "CoreMinimal.h"
#include "Engine/Font.h" #include "Engine/Font.h"
#include "GameFramework/Actor.h" #include "GameFramework/Actor.h"
#include "ConstructorHelpers.h" #include "UObject/ConstructorHelpers.h"
#include "Queue.h" #include "Containers/Queue.h"
#include "OnScreenLog.generated.h" #include "OnScreenLog.generated.h"
UCLASS() UCLASS()
......
#include "UniversalLogging.h"
#include "UniversalLoggingPrivatePCH.h" #include "UniversalLoggingPrivatePCH.h"
#include "UniversalLogging.h"
#include "LogStream.h" #include "LogStream.h"
#include "GameFramework/PlayerController.h" #include "GameFramework/PlayerController.h"
...@@ -149,6 +150,10 @@ void UniversalLoggingImpl::ResetSessionId(FString Prefix) ...@@ -149,6 +150,10 @@ void UniversalLoggingImpl::ResetSessionId(FString Prefix)
bool UniversalLoggingImpl::IsClusterMaster() bool UniversalLoggingImpl::IsClusterMaster()
{ {
if (!IDisplayCluster::IsAvailable())
{
return true;
}
IDisplayClusterClusterManager* Manager = IDisplayCluster::Get().GetClusterMgr(); IDisplayClusterClusterManager* Manager = IDisplayCluster::Get().GetClusterMgr();
if (Manager == nullptr) if (Manager == nullptr)
{ {
......
#pragma once #pragma once
#include "ModuleManager.h" #include "IDisplayCluster.h"
#include "Modules/ModuleManager.h"
#include "ILogStream.h" #include "ILogStream.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment