mirror of
https://github.com/holub/mame
synced 2025-07-02 00:29:37 +03:00
imd_dsk: Fix bug when changing IMD image [lfantoniosi] (#7289)
* Fix bug when changing IMD image These arrays weren't zeroed when changing a IMD disk for saving.
This commit is contained in:
parent
7d70d5fcd5
commit
206b44fa25
@ -439,6 +439,12 @@ bool imd_format::load(io_generic *io, uint32_t form_factor, floppy_image *image)
|
|||||||
int tracks, heads;
|
int tracks, heads;
|
||||||
image->get_maximal_geometry(tracks, heads);
|
image->get_maximal_geometry(tracks, heads);
|
||||||
|
|
||||||
|
m_mode.clear();
|
||||||
|
m_track.clear();
|
||||||
|
m_head.clear();
|
||||||
|
m_sector_count.clear();
|
||||||
|
m_ssize.clear();
|
||||||
|
|
||||||
while(pos < size) {
|
while(pos < size) {
|
||||||
m_mode.push_back(img[pos++]);
|
m_mode.push_back(img[pos++]);
|
||||||
m_track.push_back(img[pos++]);
|
m_track.push_back(img[pos++]);
|
||||||
|
Loading…
Reference in New Issue
Block a user