diff options
author | 2016-07-30 14:41:09 -0400 | |
---|---|---|
committer | 2016-07-30 14:41:09 -0400 | |
commit | 5f1bb0526331ca6736dfef009e4048d6ac6c3add (patch) | |
tree | fe0f15b59cf1e5fb30fd82355881a3bd790309bc /src/devices/machine/hp_taco.cpp | |
parent | 33245e7945cf76422e8931b93e0c3320fd8e9c6c (diff) |
Removed device_image_interface::has_been_created()
This method was necessary long ago when devices didn't have distinct load and create paths, which has since been addressed
Diffstat (limited to 'src/devices/machine/hp_taco.cpp')
-rw-r--r-- | src/devices/machine/hp_taco.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/devices/machine/hp_taco.cpp b/src/devices/machine/hp_taco.cpp index adb369c59f2..87adeb15488 100644 --- a/src/devices/machine/hp_taco.cpp +++ b/src/devices/machine/hp_taco.cpp @@ -1678,13 +1678,11 @@ void hp_taco_device::start_cmd_exec(UINT16 new_cmd_reg) } } -bool hp_taco_device::call_load() +bool hp_taco_device::internal_load(bool is_create) { - LOG(("call_load %d\n" , has_been_created())); - device_reset(); - if (has_been_created()) { + if (is_create) { clear_tape(); save_tape(); } else if (!load_tape()) { @@ -1699,10 +1697,16 @@ bool hp_taco_device::call_load() return IMAGE_INIT_PASS; } +bool hp_taco_device::call_load() +{ + LOG(("call_load\n")); + return internal_load(false); +} + bool hp_taco_device::call_create(int format_type, util::option_resolution *format_options) { - LOG(("call_create %d\n" , has_been_created())); - return call_load(); + LOG(("call_create\n")); + return internal_load(true); } void hp_taco_device::call_unload() |