code: Add additional logging during init

This commit is contained in:
IndecisiveTurtle 2024-07-01 13:35:35 +03:00 committed by TheTurtle
parent 7c7e9427ba
commit 410ba37ec2
7 changed files with 20 additions and 16 deletions

View file

@ -29,12 +29,10 @@ namespace Core {
static constexpr s32 WindowWidth = 1280;
static constexpr s32 WindowHeight = 720;
Emulator::Emulator() : window{WindowWidth, WindowHeight, controller} {
Emulator::Emulator() : memory{Core::Memory::Instance()},
window{WindowWidth, WindowHeight, controller} {
g_window = &window;
// Initialize memory system as early as possible to reserve mappings.
[[maybe_unused]] const auto* memory = Core::Memory::Instance();
// Read configuration file.
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
Config::load(config_dir / "config.toml");