From 56d9bdc1630dd309204b3db2aba4586e5571c4a0 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sun, 16 Sep 2018 23:13:37 -0230 Subject: [PATCH] Add autodetection for 32KB variant of CTY ROM. --- src/emucore/CartDetector.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emucore/CartDetector.cxx b/src/emucore/CartDetector.cxx index 14620cd55..9a16828d2 100644 --- a/src/emucore/CartDetector.cxx +++ b/src/emucore/CartDetector.cxx @@ -433,7 +433,9 @@ Bankswitch::Type CartDetector::autodetectType(const BytePtr& image, uInt32 size) } else if(size == 32*1024) // 32K { - if(isProbablySC(image, size)) + if (isProbablyCTY(image, size)) + type = Bankswitch::Type::_CTY; + else if(isProbablySC(image, size)) type = Bankswitch::Type::_F4SC; else if(isProbably3E(image, size)) type = Bankswitch::Type::_3E;