mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
fix UB
This commit is contained in:
@ -1325,14 +1325,14 @@ static bool SupportedArchiveByMimetype(const QMimeType& mimetype)
|
|||||||
|
|
||||||
static bool ZstdNdsRomByExtension(const QString& filename)
|
static bool ZstdNdsRomByExtension(const QString& filename)
|
||||||
{
|
{
|
||||||
if (filename.endsWith(".zst", Qt::CaseInsensitive))
|
return filename.endsWith(".zst", Qt::CaseInsensitive) &&
|
||||||
return NdsRomByExtension(filename.left(filename.size() - 4));
|
NdsRomByExtension(filename.left(filename.size() - 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ZstdGbaRomByExtension(const QString& filename)
|
static bool ZstdGbaRomByExtension(const QString& filename)
|
||||||
{
|
{
|
||||||
if (filename.endsWith(".zst", Qt::CaseInsensitive))
|
return filename.endsWith(".zst", Qt::CaseInsensitive) &&
|
||||||
return GbaRomByExtension(filename.left(filename.size() - 4));
|
GbaRomByExtension(filename.left(filename.size() - 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool FileIsSupportedFiletype(const QString& filename, bool insideArchive = false)
|
static bool FileIsSupportedFiletype(const QString& filename, bool insideArchive = false)
|
||||||
|
Reference in New Issue
Block a user