From f16c9b4c02d350a1bc8cc73a4780f47c9d150ecf Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Sat, 10 Aug 2024 23:49:31 +0200 Subject: [PATCH] Remove unnecessary check. --- src/emucore/CartDetector.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emucore/CartDetector.cxx b/src/emucore/CartDetector.cxx index 11bf3d4c1..cd298d874 100644 --- a/src/emucore/CartDetector.cxx +++ b/src/emucore/CartDetector.cxx @@ -28,7 +28,7 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si // Guess type based on size Bankswitch::Type type = Bankswitch::Type::_AUTO; - if (size >= 128 && isProbablyELF(image, size)) { + if (isProbablyELF(image, size)) { type =Bankswitch::Type::_ELF; } else if ((size % 8448) == 0 || size == 6_KB)