diff options
Diffstat (limited to 'src/devices/imagedev/bitbngr.cpp')
-rw-r--r-- | src/devices/imagedev/bitbngr.cpp | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/src/devices/imagedev/bitbngr.cpp b/src/devices/imagedev/bitbngr.cpp index 2a18395ad75..ae207c81498 100644 --- a/src/devices/imagedev/bitbngr.cpp +++ b/src/devices/imagedev/bitbngr.cpp @@ -9,6 +9,10 @@ #include "emu.h" #include "bitbngr.h" +#include "softlist_dev.h" + +#include <cstring> + /*************************************************************************** @@ -37,10 +41,8 @@ bitbanger_device::bitbanger_device(const machine_config &mconfig, const char *ta void bitbanger_device::output(uint8_t data) { - if (exists()) - { + if (!loaded_through_softlist() && exists()) fwrite(&data, 1); - } } @@ -51,10 +53,9 @@ void bitbanger_device::output(uint8_t data) uint32_t bitbanger_device::input(void *buffer, uint32_t length) { if (exists()) - { return fread(buffer, length); - } - return 0; + else + return 0; } @@ -63,8 +64,19 @@ uint32_t bitbanger_device::input(void *buffer, uint32_t length) device_start -------------------------------------------------*/ -void bitbanger_device::device_start(void) +void bitbanger_device::device_start() +{ +} + + + +/*------------------------------------------------- + get_software_list_loader +-------------------------------------------------*/ + +const software_list_loader &bitbanger_device::get_software_list_loader() const { + return image_software_list_loader::instance(); } @@ -73,22 +85,23 @@ void bitbanger_device::device_start(void) call_load -------------------------------------------------*/ -image_init_result bitbanger_device::call_load(void) +std::pair<std::error_condition, std::string> bitbanger_device::call_load() { - /* 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()); } -image_init_result 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 image_init_result::PASS; + // we don't need to do anything special + return std::make_pair(std::error_condition(), std::string()); } /*------------------------------------------------- call_unload -------------------------------------------------*/ -void bitbanger_device::call_unload(void) +void bitbanger_device::call_unload() { + // we don't need to do anything special } |