mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-04 06:38:45 +00:00
Fix shipping target
This commit is contained in:
@@ -82,10 +82,13 @@
|
|||||||
|
|
||||||
#else //ENABLE_COG
|
#else //ENABLE_COG
|
||||||
|
|
||||||
#define IF_COG(expr) (0)
|
#define IF_COG(expr) (0)
|
||||||
#define COG_LOG_CATEGORY FNoLoggingCategory
|
#define COG_LOG_CATEGORY FNoLoggingCategory
|
||||||
#define COG_LOG_ABILITY(...) (0)
|
#define COG_LOG_ABILITY(...) (0)
|
||||||
|
#define COG_NOTIFY(Format, ...) (0)
|
||||||
|
#define COG_NOTIFY_WARNING(Format, ...) (0)
|
||||||
|
#define COG_NOTIFY_ERROR(Format, ...) (0)
|
||||||
|
#define COG_NOTIFY_VERBOSITY(Verbosity, Format, ...) (0)
|
||||||
#define COG_LOG_ACTIVE_FOR_OBJECT(Object) (0)
|
#define COG_LOG_ACTIVE_FOR_OBJECT(Object) (0)
|
||||||
#define COG_LOG(LogCategory, Verbosity, Format, ...) (0)
|
#define COG_LOG(LogCategory, Verbosity, Format, ...) (0)
|
||||||
#define COG_LOG_FUNC(LogCategory, Verbosity, Format, ...) (0)
|
#define COG_LOG_FUNC(LogCategory, Verbosity, Format, ...) (0)
|
||||||
|
|||||||
@@ -53,7 +53,8 @@ void FCogEngineWindow_Notifications::OnLogReceived(const TCHAR* InMessage, ELogV
|
|||||||
{ return; }
|
{ return; }
|
||||||
|
|
||||||
static FName CmdName("Cmd");
|
static FName CmdName("Cmd");
|
||||||
|
|
||||||
|
#if ENABLE_COG
|
||||||
if (InCategory == LogCogNotify.GetCategoryName()
|
if (InCategory == LogCogNotify.GetCategoryName()
|
||||||
|| (InCategory == CmdName && Config->NotifyConsoleCommands)
|
|| (InCategory == CmdName && Config->NotifyConsoleCommands)
|
||||||
|| (InVerbosity == ELogVerbosity::Warning && Config->NotifyAllWarnings)
|
|| (InVerbosity == ELogVerbosity::Warning && Config->NotifyAllWarnings)
|
||||||
@@ -61,8 +62,10 @@ void FCogEngineWindow_Notifications::OnLogReceived(const TCHAR* InMessage, ELogV
|
|||||||
{
|
{
|
||||||
AddNotification(InMessage, InVerbosity);
|
AddNotification(InMessage, InVerbosity);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
void FCogEngineWindow_Notifications::RenderTick(float DeltaTime)
|
void FCogEngineWindow_Notifications::RenderTick(float DeltaTime)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ void FCogEngineWindow_OutputLog::Clear()
|
|||||||
{
|
{
|
||||||
TextBuffer.clear();
|
TextBuffer.clear();
|
||||||
LogInfos.Empty();
|
LogInfos.Empty();
|
||||||
Notifications.Empty();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -59,11 +58,6 @@ void FCogEngineWindow_OutputLog::AddLog(const TCHAR* InMessage, ELogVerbosity::T
|
|||||||
TextBuffer.append(Format.GetData(), Format.GetData() + Format.Len());
|
TextBuffer.append(Format.GetData(), Format.GetData() + Format.Len());
|
||||||
|
|
||||||
LogInfo.LineEnd = TextBuffer.size();
|
LogInfo.LineEnd = TextBuffer.size();
|
||||||
|
|
||||||
if (LogInfo.Category == LogCogNotify.GetCategoryName())
|
|
||||||
{
|
|
||||||
Notifications.Emplace(LogInfo);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -67,8 +67,6 @@ protected:
|
|||||||
FCogLogOutputDevice OutputDevice;
|
FCogLogOutputDevice OutputDevice;
|
||||||
|
|
||||||
TWeakObjectPtr<UCogEngineConfig_OutputLog> Config;
|
TWeakObjectPtr<UCogEngineConfig_OutputLog> Config;
|
||||||
|
|
||||||
TArray<FLogInfo> Notifications;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class CogSample : ModuleRules
|
|||||||
"Niagara",
|
"Niagara",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Target.Configuration != UnrealTargetConfiguration.Shipping && Target.Type != TargetRules.TargetType.Server)
|
if (Target.Configuration != UnrealTargetConfiguration.Shipping)
|
||||||
{
|
{
|
||||||
PublicDependencyModuleNames.AddRange(new string[]
|
PublicDependencyModuleNames.AddRange(new string[]
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user