Log error about HG games booted outside of /dev_hdd0

This commit is contained in:
Eladash 2021-04-08 21:02:48 +03:00 committed by Ivan
parent 49c5ce30cc
commit d2b761b7de

View file

@ -1706,6 +1706,11 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
sys_log.notice("Elf path: %s", argv[0]); sys_log.notice("Elf path: %s", argv[0]);
} }
if (!argv[0].starts_with("/dev_hdd0/game"sv) && m_cat == "HG"sv)
{
sys_log.error("Booting HG category outside of HDD0!");
}
g_fxo->init<ppu_module>(); g_fxo->init<ppu_module>();
g_fxo->init<id_manager::id_map<lv2_obj>>(); g_fxo->init<id_manager::id_map<lv2_obj>>();
g_fxo->init<id_manager::id_map<named_thread<ppu_thread>>>(); g_fxo->init<id_manager::id_map<named_thread<ppu_thread>>>();