43 lines
913 B
C++
43 lines
913 B
C++
// Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
|
|
// This file is part of the "Nazara Engine - Core module"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <Nazara/Core/Core.hpp>
|
|
#include <Nazara/Core/Config.hpp>
|
|
#include <Nazara/Core/Error.hpp>
|
|
#include <Nazara/Core/HardwareInfo.hpp>
|
|
#include <Nazara/Core/Log.hpp>
|
|
#include <Nazara/Core/PluginLoader.hpp>
|
|
#include <Nazara/Core/TaskScheduler.hpp>
|
|
#include <Nazara/Core/Debug.hpp>
|
|
|
|
namespace Nz
|
|
{
|
|
/*!
|
|
* \ingroup core
|
|
* \class Nz::Core
|
|
* \brief Core class that represents the Core module
|
|
*/
|
|
|
|
Core::Core(Config /*config*/) :
|
|
ModuleBase("Core", this, ModuleBase::NoLog{})
|
|
{
|
|
Log::Initialize();
|
|
|
|
LogInit();
|
|
|
|
m_hardwareInfo.emplace();
|
|
}
|
|
|
|
Core::~Core()
|
|
{
|
|
m_hardwareInfo.reset();
|
|
|
|
TaskScheduler::Uninitialize();
|
|
LogUninit();
|
|
Log::Uninitialize();
|
|
}
|
|
|
|
Core* Core::s_instance = nullptr;
|
|
}
|