diff options
author | Michael Zapf <Michael.Zapf@mizapf.de> | 2018-05-10 21:01:47 +0200 |
---|---|---|
committer | Michael Zapf <Michael.Zapf@mizapf.de> | 2018-05-10 21:01:47 +0200 |
commit | 7a60dec53c51b744b1a5c9af481ba16d3106372a (patch) | |
tree | 63d76f7580752563b7df971c47349e4eb4bd08c5 /src/lib | |
parent | 035b94b91efc0df526c617ba618362f03ed9193f (diff) |
Added logmacros to upd765, increased track buffer for hfe format (nw)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/formats/hxchfe_dsk.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/formats/hxchfe_dsk.cpp b/src/lib/formats/hxchfe_dsk.cpp index 15fa48b240a..57990c606d6 100644 --- a/src/lib/formats/hxchfe_dsk.cpp +++ b/src/lib/formats/hxchfe_dsk.cpp @@ -403,7 +403,10 @@ void hfe_format::generate_track_from_hfe_bitstream(int cyl, int head, int sample bool hfe_format::save(io_generic *io, floppy_image *image) { std::vector<uint8_t> cylbuf; - cylbuf.resize(0x6200); + + // Create a buffer that is big enough to handle HD formats. We don't + // know the track length until we generate the HFE bitstream. + cylbuf.resize(0x10000); uint8_t header[HEADER_LENGTH]; uint8_t track_table[TRACK_TABLE_LENGTH]; |