genesis: actually get r872 from upstream (forgot it in prev commit)
This commit is contained in:
parent
00d31f41e1
commit
a8530cbdc3
|
@ -292,14 +292,6 @@ void md_cart_init(void)
|
||||||
while (cart.romsize > size)
|
while (cart.romsize > size)
|
||||||
size <<= 1;
|
size <<= 1;
|
||||||
|
|
||||||
/* total ROM size is not a factor of 2 */
|
|
||||||
/* TODO: handle all possible ROM configurations using cartridge database */
|
|
||||||
if ((size < MAXROMSIZE) && (cart.romsize < size))
|
|
||||||
{
|
|
||||||
/* ROM is padded up to 2^k bytes */
|
|
||||||
memset(cart.rom + cart.romsize, 0xff, size - cart.romsize);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Sonic & Knuckles */
|
/* Sonic & Knuckles */
|
||||||
if (strstr(rominfo.international,"SONIC & KNUCKLES"))
|
if (strstr(rominfo.international,"SONIC & KNUCKLES"))
|
||||||
{
|
{
|
||||||
|
@ -307,6 +299,22 @@ void md_cart_init(void)
|
||||||
size = 0x400000;
|
size = 0x400000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* total ROM size is not a factor of 2 */
|
||||||
|
/* TODO: handle all possible ROM configurations using cartridge database */
|
||||||
|
if (cart.romsize < size)
|
||||||
|
{
|
||||||
|
if (size < MAXROMSIZE)
|
||||||
|
{
|
||||||
|
/* ROM is padded up to 2^k bytes */
|
||||||
|
memset(cart.rom + cart.romsize, 0xff, size - cart.romsize);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* ROM is padded up to max ROM size */
|
||||||
|
memset(cart.rom + cart.romsize, 0xff, MAXROMSIZE - cart.romsize);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ROM is mirrored each 2^k bytes */
|
/* ROM is mirrored each 2^k bytes */
|
||||||
cart.mask = size - 1;
|
cart.mask = size - 1;
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue