Better error messages when BIOS files missing
This commit is contained in:
parent
9932d9bf43
commit
32055c3bf9
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue