Fix various code to improve quality

This commit is contained in:
Wojtek Figat
2025-06-06 11:19:32 +02:00
parent 0670c0bbd3
commit 9d8e75caa3
13 changed files with 43 additions and 35 deletions

View File

@@ -170,10 +170,8 @@ int32 Engine::Main(const Char* cmdLine)
#if !USE_EDITOR && (PLATFORM_WINDOWS || PLATFORM_LINUX || PLATFORM_MAC)
EngineImpl::RunInBackground = PlatformSettings::Get()->RunInBackground;
#endif
#if LOG_ENABLE
Log::Logger::WriteFloor();
LOG_FLOOR();
LOG_FLUSH();
#endif
Time::Synchronize();
EngineImpl::IsReady = true;
PROFILE_MEM_END();
@@ -557,6 +555,7 @@ void Engine::OnExit()
#if COMPILE_WITH_PROFILER
ProfilerCPU::Dispose();
ProfilerGPU::Dispose();
ProfilerMemory::Enabled = false;
#endif
#if LOG_ENABLE