diff options
author | 2011-01-13 17:09:27 +0000 | |
---|---|---|
committer | 2011-01-13 17:09:27 +0000 | |
commit | 42d3a87923424388afaf500b37e0b44daf43ab20 (patch) | |
tree | 121befbdc5f558b7dd8db2edf22b87f4674a0a0c /src/emu/romload.h | |
parent | 148ca8dcf9e2c9113ea84646c2ba563138609c99 (diff) |
romload.c: added support for split set to softlist (for cart, cd and hd) [Fabio Priuli]
out of whatsnew: to avoid too much duplicate code, I implemented this as follow:
for parent, we pass a location tag "list/parentname" to search for the roms (no
changes in this case); for clones, we pass a composed location tag
"list/clonename%list/parentname" (notice the '%' separator) and then it is
open_rom_file to split it, if it finds a %, before searching for the rom.
out of whatsnew, 2: I also added the same support for cassettes and floppies (in
devimage.c), but it is still commented out because I had only a few files for testing.
as soon as I'm sure nothing gets broken, I'll enable it.
Diffstat (limited to 'src/emu/romload.h')
-rw-r--r-- | src/emu/romload.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/romload.h b/src/emu/romload.h index c20eef9a7b3..0ebe0faf53a 100644 --- a/src/emu/romload.h +++ b/src/emu/romload.h @@ -278,6 +278,11 @@ void rom_init(running_machine *machine); int rom_load_warnings(running_machine *machine); +/* ----- Helpers ----- */ + +file_error common_process_file_options(core_options *options, const char *location, const char *ext, const rom_entry *romp, mame_file **image_file); +file_error common_process_file(const char *location, bool has_crc, UINT32 crc, const rom_entry *romp, mame_file **image_file); +const char *software_get_clone(char *swlist, const char *swname); /* ----- ROM iteration ----- */ |