mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
(MESS) ngp.c: Added support for loading 32KB homebrew images. (nw)
This commit is contained in:
parent
7f5083b4cb
commit
8643ff8a99
1 changed files with 2 additions and 1 deletions
|
@ -655,7 +655,7 @@ static DEVICE_IMAGE_LOAD( ngp_cart )
|
|||
{
|
||||
filesize = image.length();
|
||||
|
||||
if (filesize != 0x80000 && filesize != 0x100000 && filesize != 0x200000 && filesize != 0x400000)
|
||||
if (filesize != 0x8000 && filesize != 0x80000 && filesize != 0x100000 && filesize != 0x200000 && filesize != 0x400000)
|
||||
{
|
||||
image.seterror(IMAGE_ERROR_UNSPECIFIED, "Incorrect or not support cartridge size");
|
||||
return IMAGE_INIT_FAIL;
|
||||
|
@ -678,6 +678,7 @@ static DEVICE_IMAGE_LOAD( ngp_cart )
|
|||
state->m_flash_chip[0].manufacturer_id = 0x98;
|
||||
switch( filesize )
|
||||
{
|
||||
case 0x8000:
|
||||
case 0x80000:
|
||||
state->m_flash_chip[0].device_id = 0xab;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue