mirror of https://github.com/stella-emu/stella.git
slightly improved cart type detection
This commit is contained in:
parent
84b3f0280e
commit
22f9db40b9
|
@ -133,6 +133,10 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si
|
||||||
{
|
{
|
||||||
if (isProbablyCTY(image, size))
|
if (isProbablyCTY(image, size))
|
||||||
type = Bankswitch::Type::_CTY;
|
type = Bankswitch::Type::_CTY;
|
||||||
|
else if(isProbablyCDF(image, size))
|
||||||
|
type = Bankswitch::Type::_CDF;
|
||||||
|
else if(isProbablyDPCplus(image, size))
|
||||||
|
type = Bankswitch::Type::_DPCP;
|
||||||
else if(isProbablySC(image, size))
|
else if(isProbablySC(image, size))
|
||||||
type = Bankswitch::Type::_F4SC;
|
type = Bankswitch::Type::_F4SC;
|
||||||
else if(isProbably3EX(image, size))
|
else if(isProbably3EX(image, size))
|
||||||
|
@ -143,10 +147,6 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si
|
||||||
type = Bankswitch::Type::_3F;
|
type = Bankswitch::Type::_3F;
|
||||||
else if (isProbablyBUS(image, size))
|
else if (isProbablyBUS(image, size))
|
||||||
type = Bankswitch::Type::_BUS;
|
type = Bankswitch::Type::_BUS;
|
||||||
else if (isProbablyCDF(image, size))
|
|
||||||
type = Bankswitch::Type::_CDF;
|
|
||||||
else if(isProbablyDPCplus(image, size))
|
|
||||||
type = Bankswitch::Type::_DPCP;
|
|
||||||
else if(isProbablyFA2(image, size))
|
else if(isProbablyFA2(image, size))
|
||||||
type = Bankswitch::Type::_FA2;
|
type = Bankswitch::Type::_FA2;
|
||||||
else if (isProbablyFC(image, size))
|
else if (isProbablyFC(image, size))
|
||||||
|
@ -165,12 +165,12 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si
|
||||||
{
|
{
|
||||||
if(isProbably3EX(image, size))
|
if(isProbably3EX(image, size))
|
||||||
type = Bankswitch::Type::_3EX;
|
type = Bankswitch::Type::_3EX;
|
||||||
|
else if (isProbablyCDF(image, size))
|
||||||
|
type = Bankswitch::Type::_CDF;
|
||||||
else if(isProbably3E(image, size))
|
else if(isProbably3E(image, size))
|
||||||
type = Bankswitch::Type::_3E;
|
type = Bankswitch::Type::_3E;
|
||||||
else if(isProbably3F(image, size))
|
else if(isProbably3F(image, size))
|
||||||
type = Bankswitch::Type::_3F;
|
type = Bankswitch::Type::_3F;
|
||||||
else if (isProbablyCDF(image, size))
|
|
||||||
type = Bankswitch::Type::_CDF;
|
|
||||||
else if(isProbably4A50(image, size))
|
else if(isProbably4A50(image, size))
|
||||||
type = Bankswitch::Type::_4A50;
|
type = Bankswitch::Type::_4A50;
|
||||||
else if(isProbablyEF(image, size, type))
|
else if(isProbablyEF(image, size, type))
|
||||||
|
@ -194,6 +194,8 @@ Bankswitch::Type CartDetector::autodetectType(const ByteBuffer& image, size_t si
|
||||||
type = Bankswitch::Type::_CDF;
|
type = Bankswitch::Type::_CDF;
|
||||||
else if(isProbably4A50(image, size))
|
else if(isProbably4A50(image, size))
|
||||||
type = Bankswitch::Type::_4A50;
|
type = Bankswitch::Type::_4A50;
|
||||||
|
else if(isProbablyCDF(image, size))
|
||||||
|
type = Bankswitch::Type::_CDF;
|
||||||
else /*if(isProbablySB(image, size))*/
|
else /*if(isProbablySB(image, size))*/
|
||||||
type = Bankswitch::Type::_SB;
|
type = Bankswitch::Type::_SB;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue