Fix Switch runtime setup

This commit is contained in:
Damian Korczowski
2021-07-03 19:13:41 +02:00
parent 98d29ff5dc
commit 93838b4f25
4 changed files with 23 additions and 5 deletions

View File

@@ -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;

View File

@@ -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();