Added code to the bankswitching type auto-detect method so that ROMs

which are 10,495 or 10,240 bytes in length are considered to be DPC
based games.  This should allow hacks of Pitfall II to work.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@161 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
bwmott 2002-12-15 05:49:04 +00:00
parent ab92e184cd
commit 897604d379
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,7 @@
// See the file "license" for information on usage and redistribution of
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
//
// $Id: Cart.cxx,v 1.4 2002-08-14 02:30:52 bwmott Exp $
// $Id: Cart.cxx,v 1.5 2002-12-15 05:49:04 bwmott Exp $
//============================================================================
#include <assert.h>
@ -180,6 +180,10 @@ string Cartridge::autodetectType(const uInt8* image, uInt32 size)
{
type = "F8";
}
else if((size == 10495) || (size == 10240))
{
type = "DPC";
}
else if(size == 12288)
{
type = "FASC";