softlist.c: no_dump CHDs should not trigger validation errors. no whatsnew.

This commit is contained in:
Fabio Priuli 2012-01-04 14:28:08 +00:00
parent 1298e570c8
commit 505dbc504b

View File

@ -862,12 +862,17 @@ static void start_handler(void *data, const char *tagname, const char **attribut
sprintf( hashdata, "%c%s%s", hash_collection::HASH_SHA1, str_sha1, ( nodump ? NO_DUMP : ( baddump ? BAD_DUMP : "" ) ) ); sprintf( hashdata, "%c%s%s", hash_collection::HASH_SHA1, str_sha1, ( nodump ? NO_DUMP : ( baddump ? BAD_DUMP : "" ) ) );
add_rom_entry( swlist, s_name, hashdata, 0, 0, ROMENTRYTYPE_ROM | (writeable ? DISK_READWRITE : DISK_READONLY ) ); add_rom_entry( swlist, s_name, hashdata, 0, 0, ROMENTRYTYPE_ROM | (writeable ? DISK_READWRITE : DISK_READONLY ) );
} else { }
else
{
if (!str_status || strcmp(str_status, "nodump")) // a no_dump chd is not an incomplete entry
{
parse_error(&swlist->state, "%s: Incomplete disk definition (line %lu)\n", parse_error(&swlist->state, "%s: Incomplete disk definition (line %lu)\n",
swlist->file->filename(),XML_GetCurrentLineNumber(swlist->state.parser)); swlist->file->filename(),XML_GetCurrentLineNumber(swlist->state.parser));
} }
} }
} }
}
else if (!strcmp(tagname, "dipvalue")) else if (!strcmp(tagname, "dipvalue"))
{ {
} }