diff options
author | 2021-05-26 15:19:45 +0200 | |
---|---|---|
committer | 2021-05-26 19:15:31 +0200 | |
commit | 9add8034d2b92fe8cd876ab16c63831ce460e7e2 (patch) | |
tree | 5012a1ec8f5df8389a99805d9443351cb9653141 /src/lib/formats/mfi_dsk.cpp | |
parent | ec2bec33c2e53dada0970411f3b897930516d284 (diff) |
vtech: Add floppy formats and fs
Diffstat (limited to 'src/lib/formats/mfi_dsk.cpp')
-rw-r--r-- | src/lib/formats/mfi_dsk.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/formats/mfi_dsk.cpp b/src/lib/formats/mfi_dsk.cpp index 049660272a3..7670bf6bfb9 100644 --- a/src/lib/formats/mfi_dsk.cpp +++ b/src/lib/formats/mfi_dsk.cpp @@ -146,8 +146,10 @@ bool mfi_format::load(io_generic *io, uint32_t form_factor, const std::vector<ui trackbuf.resize(cell_count); uLongf size = ent->uncompressed_size; - if(uncompress((Bytef *)&trackbuf[0], &size, &compressed[0], ent->compressed_size) != Z_OK) + if(uncompress((Bytef *)&trackbuf[0], &size, &compressed[0], ent->compressed_size) != Z_OK) { + fprintf(stderr, "fail1\n"); return false; + } uint32_t cur_time = 0; for(unsigned int i=0; i != cell_count; i++) { @@ -155,12 +157,15 @@ bool mfi_format::load(io_generic *io, uint32_t form_factor, const std::vector<ui trackbuf[i] = (trackbuf[i] & MG_MASK) | cur_time; cur_time = next_cur_time; } - if(cur_time != 200000000) + if(cur_time != 200000000) { + fprintf(stderr, "fail2 %d\n", cur_time); return false; + } ent++; } + fprintf(stderr, "tick\n"); return true; } |