summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev/printer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev/printer.cpp')
-rw-r--r--src/devices/imagedev/printer.cpp19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/devices/imagedev/printer.cpp b/src/devices/imagedev/printer.cpp
index 2eb187d843a..22e0a80a2a3 100644
--- a/src/devices/imagedev/printer.cpp
+++ b/src/devices/imagedev/printer.cpp
@@ -33,7 +33,6 @@ printer_image_device::printer_image_device(const machine_config &mconfig, const
void printer_image_device::device_start()
{
- m_online_cb.resolve();
}
/***************************************************************************
@@ -68,7 +67,7 @@ void printer_image_device::output(uint8_t data)
DEVICE_IMAGE_CREATE( printer )
-------------------------------------------------*/
-image_init_result printer_image_device::call_create(int format_type, util::option_resolution *format_options)
+std::pair<std::error_condition, std::string> printer_image_device::call_create(int format_type, util::option_resolution *format_options)
{
return call_load();
}
@@ -76,14 +75,13 @@ image_init_result printer_image_device::call_create(int format_type, util::optio
/*-------------------------------------------------
DEVICE_IMAGE_LOAD( printer )
-------------------------------------------------*/
-image_init_result printer_image_device::call_load()
+std::pair<std::error_condition, std::string> printer_image_device::call_load()
{
- /* send notify that the printer is now online */
- if (!m_online_cb.isnull())
- m_online_cb(true);
+ // send notify that the printer is now online
+ m_online_cb(true);
- /* we don't need to do anything special */
- return image_init_result::PASS;
+ // we don't need to do anything special
+ return std::make_pair(std::error_condition(), std::string());
}
@@ -92,7 +90,6 @@ image_init_result printer_image_device::call_load()
-------------------------------------------------*/
void printer_image_device::call_unload()
{
- /* send notify that the printer is now offline */
- if (!m_online_cb.isnull())
- m_online_cb(false);
+ // send notify that the printer is now offline
+ m_online_cb(false);
}