src/mess/devices/cartslot.h
| r7703 | r7704 | |
| 118 | 118 | MDRV_DEVICE_CONFIG_DATAPTR(cartslot_config, interface, _interface ) |
| 119 | 119 | |
| 120 | 120 | |
| 121 | | /*************************************************************************** |
| 122 | | FREQUENTLY OCCURING REGION NAMES |
| 123 | | ***************************************************************************/ |
| 124 | | |
| 125 | | #define CARTRIDGE_REGION_ROM "rom" |
| 126 | | #define CARTRIDGE_REGION_CHR "chr" |
| 127 | | #define CARTRIDGE_REGION_PRG "prg" |
| 128 | | |
| 129 | 121 | #endif /* __CARTSLOT_H__ */ |
src/mess/drivers/bbcbc.c
| r7703 | r7704 | |
| 141 | 141 | } |
| 142 | 142 | else |
| 143 | 143 | { |
| 144 | | UINT8 *reg = image_get_software_region( image, CARTRIDGE_REGION_ROM ); |
| 145 | | int reg_len = image_get_software_region_length( image, CARTRIDGE_REGION_ROM ); |
| 144 | UINT8 *reg = image_get_software_region( image, "rom" ); |
| 145 | int reg_len = image_get_software_region_length( image, "rom" ); |
| 146 | 146 | |
| 147 | 147 | memcpy( cart, reg, MIN(reg_len, 0x8000) ); |
| 148 | 148 | } |