Fix Switch runtime setup
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "Engine/Debug/Exceptions/Exceptions.h"
|
||||
#include <iostream>
|
||||
|
||||
#define LOG_ENABLE_FILE (!PLATFORM_SWITCH)
|
||||
|
||||
namespace
|
||||
{
|
||||
bool LogAfterInit = false, IsDuringLog = false;
|
||||
@@ -169,7 +171,7 @@ void Log::Logger::Dispose()
|
||||
|
||||
bool Log::Logger::IsLogEnabled()
|
||||
{
|
||||
#if LOG_ENABLE
|
||||
#if LOG_ENABLE && LOG_ENABLE_FILE
|
||||
return !CommandLine::Options.NoLog.HasValue();
|
||||
#else
|
||||
return false;
|
||||
|
||||
@@ -29,10 +29,9 @@ public:
|
||||
ObjectsRemovalServiceService()
|
||||
: EngineService(TEXT("Objects Removal Service"), -1000)
|
||||
{
|
||||
LastUpdate = DateTime::NowUTC();
|
||||
LastUpdateGameTime = 0;
|
||||
}
|
||||
|
||||
bool Init() override;
|
||||
void LateUpdate() override;
|
||||
void Dispose() override;
|
||||
};
|
||||
@@ -174,6 +173,13 @@ void ObjectsRemovalService::Flush(float dt, float gameDelta)
|
||||
}
|
||||
}
|
||||
|
||||
bool ObjectsRemovalServiceService::Init()
|
||||
{
|
||||
LastUpdate = DateTime::NowUTC();
|
||||
LastUpdateGameTime = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
void ObjectsRemovalServiceService::LateUpdate()
|
||||
{
|
||||
PROFILE_CPU();
|
||||
|
||||
Reference in New Issue
Block a user