summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/romload.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-09-08 03:05:09 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-09-08 03:05:09 +0000
commitf5d90dac563a8921c5cb2dcd10929ae6400585ec (patch)
tree72bd8314df086fd220c407f4726b4943f60a51ac /src/emu/romload.h
parent9af15fd27ff74bae235ce3add87b235ea3edb1df (diff)
CPUs, sound chips, devices, and ROM-regions which are specified by devices
now have their tags auto-prefixed with the device's tag. This allows for multiple instances to be present. For example, the PR-8210 laserdisc player has a CPU with a tag of "pr8210". When it is included as a device by a driver, the driver may tag the device "laserdisc". The resulting final CPU tag name will be "laserdisc:pr8210". Also updated the debugger expression engine to support names with embedded colons. Added warnings to ensure that tags used for CPUs, sound chips, regions, and devices follow some basic rules: they should be less than 12 characters long, be all lower-case, and only contain letters, numbers, underscores, or dots (no spaces). This is to ensure that they can be used properly in debugger expressions and don't get too long or unwieldy to type (even 12 chars is a bit long).
Diffstat (limited to 'src/emu/romload.h')
-rw-r--r--src/emu/romload.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/romload.h b/src/emu/romload.h
index 6152811a950..5e5fca91d7e 100644
--- a/src/emu/romload.h
+++ b/src/emu/romload.h
@@ -291,9 +291,8 @@ chd_file *get_disk_handle(const char *region);
void set_disk_handle(const char *region, mame_file *file, chd_file *chd);
/* ROM processing */
-void rom_init(running_machine *machine, const rom_entry *romp);
+void rom_init(running_machine *machine);
int rom_load_warnings(void);
-int rom_source_is_gamedrv(const game_driver *drv, const rom_source *source);
const rom_source *rom_first_source(const game_driver *drv, const machine_config *config);
const rom_source *rom_next_source(const game_driver *drv, const machine_config *config, const rom_source *previous);
const rom_entry *rom_first_region(const game_driver *drv, const rom_source *romp);
@@ -303,4 +302,7 @@ const rom_entry *rom_next_file(const rom_entry *romp);
const rom_entry *rom_first_chunk(const rom_entry *romp);
const rom_entry *rom_next_chunk(const rom_entry *romp);
+int rom_source_is_gamedrv(const game_driver *drv, const rom_source *source);
+astring *rom_region_name(astring *result, const game_driver *drv, const rom_source *source, const rom_entry *romp);
+
#endif /* __ROMLOAD_H__ */