mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
floppy: make format determination earlier
This commit is contained in:
parent
ea2a606611
commit
426274386a
@ -398,17 +398,24 @@ void floppy_image_device::commit_image()
|
||||
output_format->save(&io, variants, image.get());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void floppy_image_device::device_start()
|
||||
void floppy_image_device::device_config_complete()
|
||||
{
|
||||
rpm = 0;
|
||||
motor_always_on = false;
|
||||
dskchg_writable = false;
|
||||
has_trk00_sensor = true;
|
||||
|
||||
setup_characteristics();
|
||||
register_formats();
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void floppy_image_device::device_start()
|
||||
{
|
||||
// better would be an extra parameter in the MCFG macro
|
||||
drive_index = atoi(owner()->basetag());
|
||||
|
||||
@ -431,8 +438,6 @@ void floppy_image_device::device_start()
|
||||
ready_counter = 0;
|
||||
phases = 0;
|
||||
|
||||
setup_characteristics();
|
||||
register_formats();
|
||||
|
||||
if (m_make_sound) m_sound_out = subdevice<floppy_sound_device>(FLOPSND_TAG);
|
||||
|
||||
|
@ -167,7 +167,7 @@ protected:
|
||||
virtual void device_start() override;
|
||||
virtual void device_reset() override;
|
||||
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
|
||||
|
||||
virtual void device_config_complete() override;
|
||||
virtual void device_add_mconfig(machine_config &config) override;
|
||||
|
||||
// device_image_interface implementation
|
||||
|
Loading…
Reference in New Issue
Block a user