Flush on write to floppy images as well.

This commit is contained in:
OBattler
2024-09-24 04:36:01 +02:00
parent 8c705b4ad1
commit 7639d8b031
3 changed files with 6 additions and 0 deletions

View File

@@ -3225,6 +3225,8 @@ d86f_writeback(int drive)
free(dev->filebuf);
}
#endif
fflush(dev->fp);
}
void

View File

@@ -549,6 +549,8 @@ imd_writeback(int drive)
}
}
}
fflush(dev->fp);
}
static uint8_t

View File

@@ -431,6 +431,8 @@ write_back(int drive)
if (fwrite(dev->track_data[side], 1, size, dev->fp) != size)
fatal("IMG write_back(): Error writing data\n");
}
fflush(dev->fp);
}
static uint16_t