Previous 15994 Revisions Next

r7704 Sunday 4th April, 2010 at 18:55:54 UTC by Wilbert Pol
Some minor cleanups.
[src/mess]image.c
[src/mess/devices]cartslot.h
[src/mess/drivers]bbcbc.c gamepock.c

src/mess/devices/cartslot.h
r7703r7704
118118   MDRV_DEVICE_CONFIG_DATAPTR(cartslot_config, interface, _interface )
119119
120120
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
129121#endif /* __CARTSLOT_H__ */
src/mess/image.c
r7703r7704
14271427{
14281428    char full_tag[256];
14291429
1430    sprintf( full_tag, "%s:%s:%s", image->tag(), image_software_entry(image)->shortname, tag );
1430    sprintf( full_tag, "%s:%s", image->tag(), tag );
14311431    return memory_region_length( image->machine, full_tag );
14321432}
14331433
src/mess/drivers/gamepock.c
r7703r7704
5757   }
5858   else
5959   {
60      cart = image_get_software_region( image, CARTRIDGE_REGION_ROM );
60      cart = image_get_software_region( image, "rom" );
6161   }
6262
6363   memory_set_bankptr( image->machine, "bank1", cart );
src/mess/drivers/bbcbc.c
r7703r7704
141141   }
142142   else
143143   {
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" );
146146
147147      memcpy( cart, reg, MIN(reg_len, 0x8000) );
148148   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team