diff options
author | 2024-10-11 20:58:12 -0400 | |
---|---|---|
committer | 2024-10-11 21:05:51 -0400 | |
commit | beb81e484240c450932cd95e70fdfb6559f01eb2 (patch) | |
tree | 7fe0295911a217a2cf9280bcd00357fd3addbda7 /src/tools/chdman.cpp | |
parent | a06ca9e7226b5152f3189d8bd9ae96d3de68dcee (diff) |
chd.cpp: More API changes
- Have metadata_find return std::error_condition instead of throwing an exception
- Replace the is_XXX predicates with check_is_XXX methods that return a std::error_condition, enabling improved error reporting for cdrom_image_device
- Retain read error information in chd_file_compressor
- Make a bunch of methods noexcept
This mostly restores the changes from cc772072fa635146b1df39a5694d2a8f8aa5a34f.
Diffstat (limited to 'src/tools/chdman.cpp')
-rw-r--r-- | src/tools/chdman.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp index c71ed2a76e8..4b36414e456 100644 --- a/src/tools/chdman.cpp +++ b/src/tools/chdman.cpp @@ -2372,11 +2372,11 @@ static void do_copy(parameters_map ¶ms) // process compression; we default to our current preferences using metadata to pick the type chd_codec_type compression[4]; - if (input_chd.is_hd() || input_chd.is_dvd()) + if (!input_chd.check_is_hd() || !input_chd.check_is_dvd()) parse_compression(params, s_default_hd_compression, output_parent, compression); - else if (input_chd.is_av()) + else if (!input_chd.check_is_av()) parse_compression(params, s_default_ld_compression, output_parent, compression); - else if (input_chd.is_cd() || input_chd.is_gd()) + else if (!input_chd.check_is_cd() || !input_chd.check_is_gd()) parse_compression(params, s_default_cd_compression, output_parent, compression); else parse_compression(params, s_default_raw_compression, output_parent, compression); |