bool legacy_floppy_image_device::call_load() { int retVal = internal_floppy_device_load(-1, nullptr); if (retVal==IMAGE_INIT_PASS) { /* if we have one of our hacky unload procs, call it */ if (m_load_proc) m_load_proc(*this); } /* push disk halfway into drive */ m_wpt = CLEAR_LINE; //m_out_wpt_func(m_wpt); /* set timer for disk load */ int next_wpt; if (!is_readonly()) next_wpt = ASSERT_LINE; else next_wpt = CLEAR_LINE; machine().scheduler().timer_set(attotime::from_msec(250), timer_expired_delegate(FUNC(legacy_floppy_image_device::set_wpt),this), next_wpt); return retVal; }
bool legacy_floppy_image_device::call_load() { floppy_drive *flopimg; int retVal = internal_floppy_device_load(this, -1, NULL); flopimg = get_safe_token( this); if (retVal==IMAGE_INIT_PASS) { /* if we have one of our hacky unload procs, call it */ if (flopimg->load_proc) flopimg->load_proc(*this); } /* push disk halfway into drive */ flopimg->wpt = CLEAR_LINE; flopimg->out_wpt_func(flopimg->wpt); /* set timer for disk load */ int next_wpt; if (!is_readonly()) next_wpt = ASSERT_LINE; else next_wpt = CLEAR_LINE; machine().scheduler().timer_set(attotime::from_msec(250), FUNC(set_wpt), next_wpt, flopimg); return retVal; }
image_init_result legacy_floppy_image_device::call_load() { image_init_result retVal = internal_floppy_device_load(false, -1, nullptr); /* push disk halfway into drive */ m_wpt = CLEAR_LINE; //m_out_wpt_func(m_wpt); /* set timer for disk load */ int next_wpt; if (!is_readonly()) next_wpt = ASSERT_LINE; else next_wpt = CLEAR_LINE; machine().scheduler().timer_set(attotime::from_msec(250), timer_expired_delegate(FUNC(legacy_floppy_image_device::set_wpt),this), next_wpt); return retVal; }
bool legacy_floppy_image_device::call_create(int format_type, option_resolution *format_options) { return internal_floppy_device_load(this, format_type, format_options); }
static int device_create_floppy(mess_image *image, mame_file *file, int create_format, option_resolution *create_args) { return internal_floppy_device_load(image, file, create_format, create_args); }
static int device_load_floppy(mess_image *image, mame_file *file) { return internal_floppy_device_load(image, file, -1, NULL); }
image_init_result legacy_floppy_image_device::call_create(int format_type, util::option_resolution *format_options) { return internal_floppy_device_load(true, format_type, format_options); }