mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Include option and file names in fatal error message for failure to load image
This commit is contained in:
parent
9eb8c177bb
commit
dbe56e3113
@ -63,6 +63,7 @@ image_manager::image_manager(running_machine &machine)
|
|||||||
{
|
{
|
||||||
// retrieve image error message
|
// retrieve image error message
|
||||||
std::string image_err = std::string(image.error());
|
std::string image_err = std::string(image.error());
|
||||||
|
std::string startup_image_name = startup_image;
|
||||||
|
|
||||||
// unload the bad image
|
// unload the bad image
|
||||||
image.unload();
|
image.unload();
|
||||||
@ -72,9 +73,10 @@ image_manager::image_manager(running_machine &machine)
|
|||||||
if (machine.options().write_config())
|
if (machine.options().write_config())
|
||||||
write_config(machine.options(), nullptr, &machine.system());
|
write_config(machine.options(), nullptr, &machine.system());
|
||||||
|
|
||||||
fatalerror_exitcode(machine, EMU_ERR_DEVICE, "Device %s load (%s) failed: %s",
|
fatalerror_exitcode(machine, EMU_ERR_DEVICE, "Device %s load (-%s %s) failed: %s",
|
||||||
image.device().name(),
|
image.device().name(),
|
||||||
startup_image.c_str(),
|
image.instance_name().c_str(),
|
||||||
|
startup_image_name.c_str(),
|
||||||
image_err.c_str());
|
image_err.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user