mirror of
https://github.com/holub/mame
synced 2025-06-04 11:56:28 +03:00
romload.c: only giving a warning when loading a rom whose size is not multiple of the group size, instead of error-ing out
As I wrote to the list a couple of months ago, there are many console protos which have been compiled from sources and have been released with odd sizes. This allows to load them in MESS from softlist (they are not bad dumps, strictly speaking, given they have never been burned on a cart...) I hope there are no objections (a clear message is still written to the console, but the loading proceeds instead of stopping)
This commit is contained in:
parent
202d7680a4
commit
4f82940c9d
@ -745,7 +745,7 @@ static int read_rom_data(rom_load_data *romdata, const rom_entry *romp)
|
||||
|
||||
/* make sure the length was an even multiple of the group size */
|
||||
if (numbytes % groupsize != 0)
|
||||
fatalerror("Error in RomModule definition: %s length not an even multiple of group size\n", ROM_GETNAME(romp));
|
||||
mame_printf_warning("Warning in RomModule definition: %s length not an even multiple of group size\n", ROM_GETNAME(romp));
|
||||
|
||||
/* make sure we only fill within the region space */
|
||||
if (ROM_GETOFFSET(romp) + numgroups * groupsize + (numgroups - 1) * skip > romdata->region->bytes())
|
||||
|
Loading…
Reference in New Issue
Block a user