diff options
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() |