summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/imagedev
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/imagedev')
-rw-r--r--src/devices/imagedev/floppy.c34
-rw-r--r--src/devices/imagedev/floppy.h12
2 files changed, 23 insertions, 23 deletions
diff --git a/src/devices/imagedev/floppy.c b/src/devices/imagedev/floppy.c
index c248b10a1e7..47ddeb05f38 100644
--- a/src/devices/imagedev/floppy.c
+++ b/src/devices/imagedev/floppy.c
@@ -415,10 +415,10 @@ bool floppy_image_device::call_load()
if (!cur_load_cb.isnull())
return cur_load_cb(this);
- if (motor_always_on) {
- // When disk is inserted, start motor
- mon_w(0);
- } else if(!mon)
+ if (motor_always_on) {
+ // When disk is inserted, start motor
+ mon_w(0);
+ } else if(!mon)
ready_counter = 2;
return IMAGE_INIT_PASS;
@@ -446,10 +446,10 @@ void floppy_image_device::call_unload()
if (!cur_unload_cb.isnull())
cur_unload_cb(this);
- if (motor_always_on) {
- // When disk is removed, stop motor
- mon_w(1);
- } else if(!ready) {
+ if (motor_always_on) {
+ // When disk is removed, stop motor
+ mon_w(1);
+ } else if(!ready) {
ready = true;
if(!cur_ready_cb.isnull())
cur_ready_cb(this, ready);
@@ -497,15 +497,15 @@ void floppy_image_device::mon_w(int state)
if (!mon && image)
{
revolution_start_time = machine().time();
- if (motor_always_on) {
- // Drives with motor that is always spinning are immediately ready when a disk is loaded
- // because there is no spin-up time
- ready = false;
- if(!cur_ready_cb.isnull())
- cur_ready_cb(this, ready);
- } else {
- ready_counter = 2;
- }
+ if (motor_always_on) {
+ // Drives with motor that is always spinning are immediately ready when a disk is loaded
+ // because there is no spin-up time
+ ready = false;
+ if(!cur_ready_cb.isnull())
+ cur_ready_cb(this, ready);
+ } else {
+ ready_counter = 2;
+ }
index_resync();
}
diff --git a/src/devices/imagedev/floppy.h b/src/devices/imagedev/floppy.h
index a57b2c7b72e..5968ed6eeb8 100644
--- a/src/devices/imagedev/floppy.h
+++ b/src/devices/imagedev/floppy.h
@@ -290,11 +290,11 @@ private:
sound_stream* m_sound;
bool m_loaded;
- bool m_is525; // true if this is a 5.25" floppy drive
+ bool m_is525; // true if this is a 5.25" floppy drive
- int m_sampleindex_motor_start;
- int m_sampleindex_motor_loop;
- int m_sampleindex_motor_end;
+ int m_sampleindex_motor_start;
+ int m_sampleindex_motor_loop;
+ int m_sampleindex_motor_end;
int m_samplesize_motor_start;
int m_samplesize_motor_loop;
int m_samplesize_motor_end;
@@ -302,8 +302,8 @@ private:
int m_motor_playback_state;
bool m_motor_on;
- int m_step_samples;
- int m_sampleindex_step1;
+ int m_step_samples;
+ int m_sampleindex_step1;
int m_samplesize_step[MAX_STEP_SAMPLES];
int m_samplepos_step;
int m_step_playback_state;