Commit Graph

10 Commits

Author SHA1 Message Date
Vince Weaver
4cde5ae284 dos33: re-write mkdos33fs catalog creation a bit more robust
in theory can generate images with non-105 catalog entries
should test this thoroughly
2022-09-05 20:47:29 -04:00
Vince Weaver
cbdb595f63 dos33: more robust error checking
This was inspired by a request from Micah Cowan

hopefully this didn't break anything
2022-06-09 19:53:10 -04:00
Vince Weaver
0007cbe3a9 dos33: return error code if we hit an error
this can make scripting easier
2022-06-09 18:54:38 -04:00
Vince Weaver
87f7fc15f5 dos33: fix some issues when copying files off disk image
ran across this when trying to debug a different issue

by default we can only get total sector size from the T/S lists
(which is only a multiple of 256 bytes) but in addition A (basic)
and B (binary) files also tell you the exact length.  So we used that
to truncate to the exact length

Only it turns out some programs (I'm looking at you, cracked version
of WAVY NAVY) intentionally set the file size to be wrong and so
we were truncating things improperly

I think this updated code is a bit more clear.  Hopefully it doesn't
break anything, I need a better test suite.
2022-06-09 16:46:17 -04:00
Vince Weaver
db49ead0b6 dos33: try to propogate errors a bit better 2022-06-06 17:01:07 -04:00
Vince Weaver
0b52583de6 dos33: add debugging
chasing a weird corruption issue on DELETE
2021-08-24 17:06:05 -04:00
Vince Weaver
fc2c2f3f91 dos33: split off the dump code 2021-03-29 16:28:14 -04:00
Vince Weaver
c3a278b76a utils: dos33: split off catalog code 2021-03-29 16:02:55 -04:00
Vince Weaver
7458087e2d utils: dos33: split out the vtoc_bitmap code so we can share it 2021-03-29 13:33:03 -04:00
Vince Weaver
b1238af49d re-arranged the entire directory structure
this will probably upset people
2021-01-05 15:29:31 -05:00