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
1 changed files with 8 additions and 1 deletions

View File

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