Minor Update - Logger transformer en Singleton

This commit is contained in:
2024-04-12 17:59:44 +02:00
parent 3bc9eee3cc
commit 25f05fe217
52 changed files with 535 additions and 519 deletions

View File

@@ -5,8 +5,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline,
{
SystemClass* System;
bool result;
Logger logger;
// Create the system object.
System = new SystemClass;
@@ -15,7 +13,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline,
result = System->Initialize();
if (result)
{
logger.Log("System initialized", __FILE__, __LINE__);
Logger::Get().Log("System initialized", __FILE__, __LINE__);
System->Run();
}