CDImage: Handle .iso files the same as .bin files

Very reluctant to add this but people keep complaining...
This commit is contained in:
Connor McLaughlin 2020-11-10 23:26:24 +10:00
parent ce81d23574
commit 2467dbedd7

View file

@ -30,11 +30,18 @@ std::unique_ptr<CDImage> CDImage::Open(const char* filename)
#endif #endif
if (CASE_COMPARE(extension, ".cue") == 0) if (CASE_COMPARE(extension, ".cue") == 0)
{
return OpenCueSheetImage(filename); return OpenCueSheetImage(filename);
else if (CASE_COMPARE(extension, ".bin") == 0 || CASE_COMPARE(extension, ".img") == 0) }
else if (CASE_COMPARE(extension, ".bin") == 0 || CASE_COMPARE(extension, ".img") == 0 ||
CASE_COMPARE(extension, ".iso") == 0)
{
return OpenBinImage(filename); return OpenBinImage(filename);
}
else if (CASE_COMPARE(extension, ".chd") == 0) else if (CASE_COMPARE(extension, ".chd") == 0)
{
return OpenCHDImage(filename); return OpenCHDImage(filename);
}
#undef CASE_COMPARE #undef CASE_COMPARE