aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontend/qt_sdl/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index b0f1538..47936b4 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -1325,14 +1325,14 @@ static bool SupportedArchiveByMimetype(const QMimeType& mimetype)
static bool ZstdNdsRomByExtension(const QString& filename)
{
- if (filename.endsWith(".zst", Qt::CaseInsensitive))
- return NdsRomByExtension(filename.left(filename.size() - 4));
+ return filename.endsWith(".zst", Qt::CaseInsensitive) &&
+ NdsRomByExtension(filename.left(filename.size() - 4));
}
static bool ZstdGbaRomByExtension(const QString& filename)
{
- if (filename.endsWith(".zst", Qt::CaseInsensitive))
- return GbaRomByExtension(filename.left(filename.size() - 4));
+ return filename.endsWith(".zst", Qt::CaseInsensitive) &&
+ GbaRomByExtension(filename.left(filename.size() - 4));
}
static bool FileIsSupportedFiletype(const QString& filename, bool insideArchive = false)