summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/dvdrom.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2023-10-23 22:34:46 -0400
committer AJR <ajrhacker@users.noreply.github.com>2023-10-23 22:38:08 -0400
commitcc772072fa635146b1df39a5694d2a8f8aa5a34f (patch)
treebddda4371b2118a8702d3afcf4d65b344a85fbaa /src/lib/util/dvdrom.cpp
parentc936fd87994b44c713afd15ee0ae9e71227e522b (diff)
chd.cpp: Refactoring, part 2
- Change is_XXX to return std::error_condition instead of bool so that errors can be passed down the line; rename these to check_is_XXX to indicate that they are no longer basic predicates - Change return type of internal function metadata_find to std::error_condition so that errors can be returned rather than thrown * imagedev/cdromimg.cpp: Fix bug where cdrom_file object could be constructed twice in a row for CD-ROMs and once for DVDs
Diffstat (limited to 'src/lib/util/dvdrom.cpp')
-rw-r--r--src/lib/util/dvdrom.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/dvdrom.cpp b/src/lib/util/dvdrom.cpp
index 36dc29e7215..3a19291b16f 100644
--- a/src/lib/util/dvdrom.cpp
+++ b/src/lib/util/dvdrom.cpp
@@ -58,7 +58,7 @@ dvdrom_file::dvdrom_file(chd_file *_chd)
throw nullptr;
/* check it's actually a DVD-ROM */
- if (!chd->is_dvd())
+ if (chd->check_is_dvd())
throw nullptr;
sector_count = chd->unit_count();