diff options
author | Fabio Priuli <etabeta78@users.noreply.github.com> | 2012-01-04 14:28:08 +0000 |
---|---|---|
committer | Fabio Priuli <etabeta78@users.noreply.github.com> | 2012-01-04 14:28:08 +0000 |
commit | 505dbc504b0ea959f1732037e985406a4e39dc56 (patch) | |
tree | 960f70edef4842ddaeb10a98af6eb20693ab4912 | |
parent | 1298e570c8028e426cf6d1912c04bc6cf594f73e (diff) |
softlist.c: no_dump CHDs should not trigger validation errors. no whatsnew.
-rw-r--r-- | src/emu/softlist.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/emu/softlist.c b/src/emu/softlist.c index 9a483dc9788..62ceb6dd79b 100644 --- a/src/emu/softlist.c +++ b/src/emu/softlist.c @@ -862,9 +862,14 @@ 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 : "" ) ) ); add_rom_entry( swlist, s_name, hashdata, 0, 0, ROMENTRYTYPE_ROM | (writeable ? DISK_READWRITE : DISK_READONLY ) ); - } else { - parse_error(&swlist->state, "%s: Incomplete disk definition (line %lu)\n", - swlist->file->filename(),XML_GetCurrentLineNumber(swlist->state.parser)); + } + 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", + swlist->file->filename(),XML_GetCurrentLineNumber(swlist->state.parser)); + } } } } |