genesis: actually get r872 from upstream (forgot it in prev commit)

This commit is contained in:
goyuken 2014-07-05 05:58:00 +00:00
parent 00d31f41e1
commit a8530cbdc3
2 changed files with 16 additions and 8 deletions

View File

@ -292,14 +292,6 @@ void md_cart_init(void)
while (cart.romsize > size)
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 */
if (strstr(rominfo.international,"SONIC & KNUCKLES"))
{
@ -307,6 +299,22 @@ void md_cart_init(void)
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 */
cart.mask = size - 1;

Binary file not shown.