Commit Graph

2 Commits

Author SHA1 Message Date
Vas Crabb
5731492874 tools/chdman.cpp: Fixed numerous issues, including:
Support input start/size options for createdvd.

Fixed not reporting an error on unrecognised command line options.

Fixed --fix/-f option for verify command not working.

Report an error when conflicting options are supplied (e.g. hard disk
template and C/H/S geometry, or input start offset in both bytes and
hunks).  Previously the results would be unpredictable.

Detect more invalid combinations of options, and detect when output unit
size or hunk size doesn't match parent.

Changed order of processing options for createhd so using a template
cannot not inadvertently result in an invalid combination of sector size
and hunk size.

Don't require an explicit unit size for createraw if an output parent
CHD file is supplied.

Fixed an object leak in createcd.
2024-02-10 06:21:05 +11:00
Vas Crabb
fa9d0fc32a chdman: Fixed a couple of issues and added preliminary web docs.
tools/chdman.cpp: Added --hunksize/-hs option for createdvd command and
default to 4K hunks (2 sectors, same size as hard disk hunks).  Also
removed --outputbin/-ob option from extractdvd command - it did nothing
as it's CD-specific.

docs: Added preliminary chdman documentation.  Most common options have
at least basic descriptions, supported options are listed for all
commands, and supported compression algorithms are described.

docs: Cleaned up heading levels in tools section.
2024-02-05 05:07:29 +11:00