summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/chdman.cpp
diff options
context:
space:
mode:
author AJR <ariedlmayer@gmail.com>2024-10-11 20:58:12 -0400
committer AJR <ariedlmayer@gmail.com>2024-10-11 21:05:51 -0400
commitbeb81e484240c450932cd95e70fdfb6559f01eb2 (patch)
tree7fe0295911a217a2cf9280bcd00357fd3addbda7 /src/tools/chdman.cpp
parenta06ca9e7226b5152f3189d8bd9ae96d3de68dcee (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.cpp6
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 &params)
// 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);