Better error messages when BIOS files missing

This commit is contained in:
Flyinghead 2019-07-24 18:53:09 +02:00
parent 9932d9bf43
commit 32055c3bf9
2 changed files with 5 additions and 3 deletions

View File

@ -216,7 +216,7 @@ static void naomi_cart_LoadZip(const char *filename)
{
// If a specific BIOS is needed for this game, fail.
if (game->bios != NULL || !bios_loaded)
throw NaomiCartException(std::string("Error: cannot load BIOS ") + (game->bios != NULL ? game->bios : "naomi.zip"));
throw NaomiCartException(std::string("Error: cannot load BIOS ") + (game->bios != NULL ? game->bios : "naomi.zip") + " in " + get_readonly_data_path(DATA_PATH));
// otherwise use the default BIOS
}

View File

@ -458,7 +458,9 @@ void dc_start_game(const char *path)
InitSettings();
dc_reset(true);
LoadSettings(false);
if (!LoadRomFiles(get_readonly_data_path(DATA_PATH)))
std::string data_path = get_readonly_data_path(DATA_PATH);
if (!LoadRomFiles(data_path))
{
if (settings.platform.system == DC_PLATFORM_DREAMCAST)
{
@ -473,7 +475,7 @@ void dc_start_game(const char *path)
else
#endif
{
throw ReicastException("Cannot find BIOS files");
throw ReicastException("Cannot find BIOS files in " + data_path);
}
}
}