diff options
author | 2024-02-10 06:10:19 +1100 | |
---|---|---|
committer | 2024-02-10 06:21:05 +1100 | |
commit | 5731492874513cfcd204aae6735cf70db4d6b6e0 (patch) | |
tree | a6c3bcb208780a759a2681eabea9a4c0cde51172 /src/lib/util/chd.h | |
parent | d88e12714307ff5a9dc02d0e849ed84d3c4b4f93 (diff) |
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.
Diffstat (limited to 'src/lib/util/chd.h')
-rw-r--r-- | src/lib/util/chd.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/util/chd.h b/src/lib/util/chd.h index 3e52cab4f9b..d5a813944e0 100644 --- a/src/lib/util/chd.h +++ b/src/lib/util/chd.h @@ -323,10 +323,10 @@ public: void set_parent_sha1(util::sha1_t parent); // file create - std::error_condition create(std::string_view filename, uint64_t logicalbytes, uint32_t hunkbytes, uint32_t unitbytes, chd_codec_type compression[4]); - std::error_condition create(util::random_read_write::ptr &&file, uint64_t logicalbytes, uint32_t hunkbytes, uint32_t unitbytes, chd_codec_type compression[4]); - std::error_condition create(std::string_view filename, uint64_t logicalbytes, uint32_t hunkbytes, chd_codec_type compression[4], chd_file &parent); - std::error_condition create(util::random_read_write::ptr &&file, uint64_t logicalbytes, uint32_t hunkbytes, chd_codec_type compression[4], chd_file &parent); + std::error_condition create(std::string_view filename, uint64_t logicalbytes, uint32_t hunkbytes, uint32_t unitbytes, const chd_codec_type (&compression)[4]); + std::error_condition create(util::random_read_write::ptr &&file, uint64_t logicalbytes, uint32_t hunkbytes, uint32_t unitbytes, const chd_codec_type (&compression)[4]); + std::error_condition create(std::string_view filename, uint64_t logicalbytes, uint32_t hunkbytes, const chd_codec_type (&compression)[4], chd_file &parent); + std::error_condition create(util::random_read_write::ptr &&file, uint64_t logicalbytes, uint32_t hunkbytes, const chd_codec_type (&compression)[4], chd_file &parent); // file open std::error_condition open(std::string_view filename, bool writeable = false, chd_file *parent = nullptr, const open_parent_func &open_parent = nullptr); |