From 32055c3bf94e0081a2c86802715cceb871df542a Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Wed, 24 Jul 2019 18:53:09 +0200 Subject: [PATCH] Better error messages when BIOS files missing --- core/hw/naomi/naomi_cart.cpp | 2 +- core/nullDC.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/hw/naomi/naomi_cart.cpp b/core/hw/naomi/naomi_cart.cpp index 99add2927..127c91b98 100644 --- a/core/hw/naomi/naomi_cart.cpp +++ b/core/hw/naomi/naomi_cart.cpp @@ -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 } diff --git a/core/nullDC.cpp b/core/nullDC.cpp index 1ed27c403..ccf093489 100755 --- a/core/nullDC.cpp +++ b/core/nullDC.cpp @@ -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); } } }