diff options
author | 2023-10-23 22:34:46 -0400 | |
---|---|---|
committer | 2023-10-23 22:38:08 -0400 | |
commit | cc772072fa635146b1df39a5694d2a8f8aa5a34f (patch) | |
tree | bddda4371b2118a8702d3afcf4d65b344a85fbaa /src/lib/util/dvdrom.cpp | |
parent | c936fd87994b44c713afd15ee0ae9e71227e522b (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.cpp | 2 |
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(); |