Emu.Load: add more logging

This commit is contained in:
Megamouse 2021-09-13 01:21:11 +02:00
parent 8b48fd95fe
commit 6378e16fdf

View File

@ -137,6 +137,8 @@ void Emulator::Init(bool add_only)
{
if (const fs::file cfg_file{m_config_path, fs::read + fs::create})
{
sys_log.notice("Applying config override: %s", m_config_path);
if (!g_cfg.from_string(cfg_file.to_string()))
{
sys_log.fatal("Failed to apply config: %s. Proceeding with regular configuration.", m_config_path);
@ -162,6 +164,8 @@ void Emulator::Init(bool add_only)
if (const fs::file cfg_file{cfg_path, fs::read + fs::create})
{
sys_log.notice("Applying global config: %s", cfg_path);
if (!g_cfg.from_string(cfg_file.to_string()))
{
sys_log.fatal("Failed to apply global config: %s", cfg_path);
@ -517,6 +521,8 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
m_title_id = title_id;
}
sys_log.notice("Selected config: %s", m_config_path);
{
Init(add_only);