Skip to content

Commit

Permalink
DC42: fix loading images with no sector tags
Browse files Browse the repository at this point in the history
  • Loading branch information
twvd committed Nov 28, 2024
1 parent 79903e4 commit e20bc3e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion floppy/src/loaders/diskcopy42.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ impl FloppyImageLoader for Diskcopy42 {
);
}

MacFormatEncoder::encode(floppytype, &raw.data, Some(&raw.tags), title)
if raw.tags.len() > 0 {
MacFormatEncoder::encode(floppytype, &raw.data, Some(&raw.tags), title)
} else {
MacFormatEncoder::encode(floppytype, &raw.data, None, title)
}
}
}

0 comments on commit e20bc3e

Please sign in to comment.