summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/bitbngr.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2023-04-08 02:38:31 +1000
committer Vas Crabb <vas@vastheman.com>2023-04-08 02:38:31 +1000
commit2b424f5a8090961db0d8224f755b2dff7c9e9a8c (patch)
tree97da90487cbdefff24bcccc57f8a874b9ac8c929 /src/devices/imagedev/bitbngr.cpp
parent9bda81283d963ee04dba90901f89c6f264ed3f3b (diff)
Restored ability of for image devices to report specific error messages.
Restores ability to give specific/detailed messages removed in 6f7e4141ea14acaaf9cb973c66788fabb3457023 while pandering to obsession with single return value. Moved responsibility for displaying the error message in the UI to the caller rather than device_image_interface, and made device_image_interface always log the error along with the full path and error condition content. Gave several image devices more detailed error messages. Added some FIXME comments for apparent bugs.
Diffstat (limited to 'src/devices/imagedev/bitbngr.cpp')
-rw-r--r--src/devices/imagedev/bitbngr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/imagedev/bitbngr.cpp b/src/devices/imagedev/bitbngr.cpp
index 07b88f41386..ae207c81498 100644
--- a/src/devices/imagedev/bitbngr.cpp
+++ b/src/devices/imagedev/bitbngr.cpp
@@ -85,16 +85,16 @@ const software_list_loader &bitbanger_device::get_software_list_loader() const
call_load
-------------------------------------------------*/
-std::error_condition bitbanger_device::call_load()
+std::pair<std::error_condition, std::string> bitbanger_device::call_load()
{
// we don't need to do anything special
- return std::error_condition();
+ return std::make_pair(std::error_condition(), std::string());
}
-std::error_condition bitbanger_device::call_create(int format_type, util::option_resolution *format_options)
+std::pair<std::error_condition, std::string> bitbanger_device::call_create(int format_type, util::option_resolution *format_options)
{
// we don't need to do anything special
- return std::error_condition();
+ return std::make_pair(std::error_condition(), std::string());
}
/*-------------------------------------------------