From 2467dbedd79d451b35f4f2af531e2a7a571044e8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 10 Nov 2020 23:26:24 +1000 Subject: [PATCH] CDImage: Handle .iso files the same as .bin files Very reluctant to add this but people keep complaining... --- src/common/cd_image.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/cd_image.cpp b/src/common/cd_image.cpp index f64e764b3..f2f2ed423 100644 --- a/src/common/cd_image.cpp +++ b/src/common/cd_image.cpp @@ -30,11 +30,18 @@ std::unique_ptr 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