[libromdata] Dreamcast: Fix typo that broke GDI parsing.

Both the GDI and CDI branches were attempting to create CdiReader objects.
That obviously won't work for GDI.

This fixes a regression from commit 209ea0d951.
([libromdata] MultiTrackSparseDiscReader.hpp: New interface for multi-track sparse disc reader classes.)

Affects: v2.4 - v2.4.1
This commit is contained in:
David Korth 2025-03-22 11:05:58 -04:00
parent 536432f81f
commit 1c2d28d876
2 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,8 @@
also considered root directories, so the directory check was done instead
of the device check.
* Affects: v2.4 - v2.4.1
* Dreamcast: Fix typo that broke GDI parsing.
* Affects: V2.4 - v2.4.1
* Other changes:
* CMake: Added an ENABLE_NETWORKING option to control whether or not

View File

@ -401,7 +401,7 @@ Dreamcast::Dreamcast(const IRpFilePtr &file)
// CDI manages its own iso_start_offset.
const char *mimeType;
if (d->discType == DreamcastPrivate::DiscType::GDI) {
d->discReader = std::make_shared<CdiReader>(d->file);
d->discReader = std::make_shared<GdiReader>(d->file);
mimeType = "application/x-gd-rom-cue";
} else /*if (d->discType == DreamcastPrivate::DiscType::CDI)*/ {
d->discReader = std::make_shared<CdiReader>(d->file);