Previous 15994 Revisions Next

r2220 Wednesday 2nd April, 2008 at 16:16:30 UTC by Firewave
More usage of the DEVICE_IMAGE_*_NAME macros / small fix to tmc2000e machine definition
[src/mess/devices]appldriv.c basicdsk.c cartslot.c cassette.c chd_cd.c dsk.c harddriv.c mflopimg.c snapquik.c sonydriv.c
[src/mess/drivers]a2600.c a7800.c abc80.c abc80x.c amstrad.c apexc.c apf.c arcadia.c atari.c atarist.c atom.c bbc.c bw2.c c16.c cgenie.c coco.c crvision.c exidy.c gamecom.c gamepock.c gb.c genesis.c geneve.c intv.c jupiter.c kaypro.c kc.c lynx.c mbee.c mekd2.c msx.c n64.c nascom1.c nc.c nes.c oric.c osborne1.c osi.c pasogo.c pc8801.c pce.c pdp1.c pokemini.c ql.c sg1000.c sms.c snes.c special.c spectrum.c studio2.c super80.c svi318.c ti85.c ti990_10.c ti99_4p.c ti99_4x.c ti99_8.c tm990189.c tmc2000e.c tmc600.c trs80.c tutor.c tx0.c vc20.c vc4000.c vectrex.c vtech1.c vtech2.c wswan.c x68k.c
[src/mess/machine]amigafdc.c cbm.c cbmserb.c kim1.c vc1541.c vc20tape.c

src/mess/devices/harddriv.c
r2219r2220
105105
106106/*************************************
107107 *
108 *   device_load_mess_hd()
109 *  device_create_mess_hd()
108 *   DEVICE_IMAGE_LOAD_NAME(mess_hd)
109 *  DEVICE_IMAGE_CREATE_NAME(mess_hd)
110110 *
111111 *   Device load and create
112112 *
r2219r2220
204204
205205/*************************************
206206 *
207 *   device_unload_mess_hd()
207 *   DEVICE_IMAGE_UNLOAD_NAME(mess_hd)
208208 *
209209 *   Device unload
210210 *
r2219r2220
278278
279279      /* --- the following bits of info are returned as pointers to data or functions --- */
280280      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(mess_hd); break;
281      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_mess_hd; break;
282      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_mess_hd; break;
281      case MESS_DEVINFO_PTR_LOAD:                  info->load = DEVICE_IMAGE_LOAD_NAME(mess_hd); break;
282      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(mess_hd); break;
283283      case MESS_DEVINFO_PTR_CREATE_OPTGUIDE:         info->p = (void *) mess_hd_option_guide; break;
284284      case MESS_DEVINFO_PTR_CREATE_OPTSPEC+0:         info->p = (void *) mess_hd_option_spec;
285285
src/mess/devices/cassette.c
r2219r2220
386386
387387      /* --- the following bits of info are returned as pointers to data or functions --- */
388388      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(cassette); break;
389      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_cassette; break;
390      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_cassette; break;
389      case MESS_DEVINFO_PTR_LOAD:                  info->load = DEVICE_IMAGE_LOAD_NAME(cassette); break;
390      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(cassette); break;
391391      case MESS_DEVINFO_PTR_DISPLAY:               info->display = device_display_cassette; break;
392392      case MESS_DEVINFO_PTR_CASSETTE_FORMATS:         info->p = (void *) cassette_default_formats; break;
393393
src/mess/devices/sonydriv.c
r2219r2220
514514      case MESS_DEVINFO_STR_DEV_TAG:         strcpy(info->s = device_temp_str(), "sonydriv"); break;
515515
516516      /* --- the following bits of info are returned as pointers to data or functions --- */
517      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = device_unload_sonydriv_floppy; break;
517      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = DEVICE_IMAGE_UNLOAD_NAME(sonydriv_floppy); break;
518518      case MESS_DEVINFO_PTR_FLOPPY_OPTIONS:
519519         if (mess_device_get_info_int(devclass, MESS_DEVINFO_INT_SONYDRIV_ALLOWABLE_SIZES) & SONY_FLOPPY_SUPPORT2IMG)
520520            info->p = (void *) floppyoptions_apple35_iigs;
src/mess/devices/cartslot.c
r2219r2220
206206
207207      /* --- the following bits of info are returned as pointers to data or functions --- */
208208      case MESS_DEVINFO_PTR_START:                  info->start = (count > 0) ? DEVICE_START_NAME(cartslot_specified) : NULL; break;
209      case MESS_DEVINFO_PTR_LOAD:                  info->load = (count > 0) ? device_load_cartslot_specified : NULL; break;
210      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = (count > 0) ? device_unload_cartslot_specified : NULL; break;
209      case MESS_DEVINFO_PTR_LOAD:                  info->load = (count > 0) ? DEVICE_IMAGE_LOAD_NAME(cartslot_specified) : NULL; break;
210      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = (count > 0) ? DEVICE_IMAGE_UNLOAD_NAME(cartslot_specified) : NULL; break;
211211
212212      /* --- the following bits of info are returned as NULL-terminated strings --- */
213213      case MESS_DEVINFO_STR_DEV_FILE:               strcpy(info->s = device_temp_str(), __FILE__); break;
src/mess/devices/chd_cd.c
r2219r2220
9090
9191/*************************************
9292 *
93 *   device_init_mess_cd()
93 *   DEVICE_START_NAME(mess_cd)
9494 *
9595 *   Device init
9696 *
r2219r2220
107107
108108/*************************************
109109 *
110 *   device_load_mess_cd()
110 *   DEVICE_IMAGE_LOAD_NAME(mess_cd)
111111 *
112112 *   Device load
113113 *
r2219r2220
154154
155155/*************************************
156156 *
157 *   device_unload_mess_cd()
157 *   DEVICE_IMAGE_UNLOAD_NAME(mess_cd)
158158 *
159159 *   Device unload
160160 *
r2219r2220
218218
219219      /* --- the following bits of info are returned as pointers to data or functions --- */
220220      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(mess_cd); break;
221      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_mess_cd; break;
222      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_mess_cd; break;
221      case MESS_DEVINFO_PTR_LOAD:                  info->load = DEVICE_IMAGE_LOAD_NAME(mess_cd); break;
222      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(mess_cd); break;
223223      case MESS_DEVINFO_PTR_CREATE_OPTGUIDE:         info->p = (void *) mess_cd_option_guide; break;
224224      case MESS_DEVINFO_PTR_CREATE_OPTSPEC+0:         info->p = (void *) mess_cd_option_spec;
225225
src/mess/devices/mflopimg.c
r2219r2220
434434
435435      /* --- the following bits of info are returned as pointers to data or functions --- */
436436      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(floppy); break;
437      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_floppy; break;
438      case MESS_DEVINFO_PTR_CREATE:         info->create = device_create_floppy; break;
439      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = device_unload_floppy; break;
437      case MESS_DEVINFO_PTR_LOAD:            info->load = DEVICE_IMAGE_LOAD_NAME(floppy); break;
438      case MESS_DEVINFO_PTR_CREATE:         info->create = DEVICE_IMAGE_CREATE_NAME(floppy); break;
439      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = DEVICE_IMAGE_UNLOAD_NAME(floppy); break;
440440      case MESS_DEVINFO_PTR_CREATE_OPTGUIDE:   info->p = (void *) floppy_option_guide; break;
441441
442442      default:
src/mess/devices/dsk.c
r2219r2220
545545
546546      /* --- the following bits of info are returned as pointers to data or functions --- */
547547      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(dsk_floppy); break;
548      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_dsk_floppy; break;
549      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_dsk_floppy; break;
548      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(dsk_floppy); break;
549      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(dsk_floppy); break;
550550
551551      /* --- the following bits of info are returned as NULL-terminated strings --- */
552552      case MESS_DEVINFO_STR_DEV_FILE:                  strcpy(info->s = device_temp_str(), __FILE__); break;
src/mess/devices/appldriv.c
r2219r2220
327327
328328      /* --- the following bits of info are returned as pointers to data or functions --- */
329329      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(apple525_floppy); break;
330      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_apple525_floppy; break;
331      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = device_unload_apple525_floppy; break;
330      case MESS_DEVINFO_PTR_LOAD:            info->load = DEVICE_IMAGE_LOAD_NAME(apple525_floppy); break;
331      case MESS_DEVINFO_PTR_UNLOAD:         info->unload = DEVICE_IMAGE_UNLOAD_NAME(apple525_floppy); break;
332332      case MESS_DEVINFO_PTR_FLOPPY_OPTIONS:   info->p = (void *) floppyoptions_apple2; break;
333333
334334      default: floppy_device_getinfo(devclass, state, info); break;
src/mess/devices/basicdsk.c
r2219r2220
587587
588588      /* --- the following bits of info are returned as pointers to data or functions --- */
589589      case MESS_DEVINFO_PTR_START:                  info->start = DEVICE_START_NAME(basicdsk_floppy); break;
590      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_basicdsk_floppy; break;
590      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(basicdsk_floppy); break;
591591
592592      /* --- the following bits of info are returned as NULL-terminated strings --- */
593593      case MESS_DEVINFO_STR_DEV_FILE:               strcpy(info->s = device_temp_str(), __FILE__); break;
src/mess/devices/snapquik.c
r2219r2220
9595      case MESS_DEVINFO_INT_CREATABLE:               info->i = 0; break;
9696
9797      /* --- the following bits of info are returned as pointers to data or functions --- */
98      case MESS_DEVINFO_PTR_LOAD:                  info->load = device_load_snapquick; break;
99      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = device_unload_snapquick; break;
98      case MESS_DEVINFO_PTR_LOAD:                  info->load = DEVICE_IMAGE_LOAD_NAME(snapquick); break;
99      case MESS_DEVINFO_PTR_UNLOAD:               info->unload = DEVICE_IMAGE_UNLOAD_NAME(snapquick); break;
100100
101101      /* --- the following bits of info are returned as NULL-terminated strings --- */
102102      case MESS_DEVINFO_STR_DEV_FILE:               strcpy(info->s = device_temp_str(), __FILE__); break;
src/mess/machine/cbm.c
r2219r2220
334334
335335      /* --- the following bits of info are returned as pointers to data or functions --- */
336336      case MESS_DEVINFO_PTR_START:               info->start = DEVICE_START_NAME(cbm_rom); break;
337      case MESS_DEVINFO_PTR_LOAD:               info->load = device_load_cbm_rom; break;
338      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = device_unload_cbm_rom; break;
337      case MESS_DEVINFO_PTR_LOAD:               info->load = DEVICE_IMAGE_LOAD_NAME(cbm_rom); break;
338      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = DEVICE_IMAGE_UNLOAD_NAME(cbm_rom); break;
339339
340340      default: cartslot_device_getinfo(devclass, state, info);
341341   }
src/mess/machine/kim1.c
r2219r2220
921921      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
922922
923923      /* --- the following bits of info are returned as pointers to data or functions --- */
924      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_kim1_cassette; break;
924      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(kim1_cassette); break;
925925
926926      /* --- the following bits of info are returned as NULL-terminated strings --- */
927927      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "kim1"); break;
src/mess/machine/cbmserb.c
r2219r2220
415415      /* --- the following bits of info are returned as pointers to data or functions --- */
416416      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(cbm_drive); break;
417417      case MESS_DEVINFO_PTR_STOP:                     info->stop = DEVICE_STOP_NAME(cbm_drive); break;
418      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_cbm_drive; break;
418      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(cbm_drive); break;
419419
420420      /* --- the following bits of info are returned as NULL-terminated strings --- */
421421      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "d64"); break;
src/mess/machine/vc1541.c
r2219r2220
10811081      case MESS_DEVINFO_INT_RESET_ON_LOAD:         info->i = 1; break;
10821082
10831083      /* --- the following bits of info are returned as pointers to data or functions --- */
1084      case MESS_DEVINFO_PTR_LOAD:               info->load = device_load_vc1541; break;
1085      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = device_unload_vc1541; break;
1084      case MESS_DEVINFO_PTR_LOAD:               info->load = DEVICE_IMAGE_LOAD_NAME(vc1541); break;
1085      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = DEVICE_IMAGE_UNLOAD_NAME(vc1541); break;
10861086      case DEVINFO_PTR_VC1541_CONFIG:         info->f = (genf *) vc1541_config; break;
10871087
10881088      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/machine/amigafdc.c
r2219r2220
759759
760760      /* --- the following bits of info are returned as pointers to data or functions --- */
761761      case MESS_DEVINFO_PTR_START:               info->start = DEVICE_START_NAME(amiga_fdc); break;
762      case MESS_DEVINFO_PTR_LOAD:               info->load = device_load_amiga_fdc; break;
763      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = device_unload_amiga_fdc; break;
762      case MESS_DEVINFO_PTR_LOAD:               info->load = DEVICE_IMAGE_LOAD_NAME(amiga_fdc); break;
763      case MESS_DEVINFO_PTR_UNLOAD:            info->unload = DEVICE_IMAGE_UNLOAD_NAME(amiga_fdc); break;
764764
765765      /* --- the following bits of info are returned as NULL-terminated strings --- */
766766      case MESS_DEVINFO_STR_FILE_EXTENSIONS:      strcpy(info->s = device_temp_str(), "adf"); break;
src/mess/machine/vc20tape.c
r2219r2220
11041104      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
11051105
11061106      /* --- the following bits of info are returned as pointers to data or functions --- */
1107      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vc20_tape; break;
1108      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_vc20_tape; break;
1107      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(vc20_tape); break;
1108      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(vc20_tape); break;
11091109
11101110      /* --- the following bits of info are returned as NULL-terminated strings --- */
11111111      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "wav"); break;
src/mess/drivers/wswan.c
r2219r2220
180180
181181      /* --- the following bits of info are returned as pointers to data or functions --- */
182182      case MESS_DEVINFO_PTR_START:         info->start = DEVICE_START_NAME(wswan_cart); break;
183      case MESS_DEVINFO_PTR_LOAD:         info->load = device_load_wswan_cart; break;
183      case MESS_DEVINFO_PTR_LOAD:         info->load = DEVICE_IMAGE_LOAD_NAME(wswan_cart); break;
184184
185185      /* --- the following bits of info are returned as NULL-terminated strings --- */
186186      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "ws,wsc,bin"); break;
src/mess/drivers/pdp1.c
r2219r2220
513513
514514      /* --- the following bits of info are returned as pointers to data or functions --- */
515515      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(pdp1_tape); break;
516      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pdp1_tape; break;
517      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_pdp1_tape; break;
516      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_tape); break;
517      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_tape); break;
518518      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = pdp1_get_open_mode; break;
519519
520520      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
535535      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
536536
537537      /* --- the following bits of info are returned as pointers to data or functions --- */
538      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pdp1_typewriter; break;
539      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_pdp1_typewriter; break;
538      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_typewriter); break;
539      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_typewriter); break;
540540
541541      /* --- the following bits of info are returned as NULL-terminated strings --- */
542542      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "typ"); break;
r2219r2220
556556      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
557557
558558      /* --- the following bits of info are returned as pointers to data or functions --- */
559      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pdp1_drum; break;
560      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_pdp1_drum; break;
559      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pdp1_drum); break;
560      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(pdp1_drum); break;
561561
562562      /* --- the following bits of info are returned as NULL-terminated strings --- */
563563      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "drm"); break;
src/mess/drivers/atari.c
r2219r2220
877877      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
878878
879879      /* --- the following bits of info are returned as pointers to data or functions --- */
880      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a800_floppy; break;
880      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a800_floppy); break;
881881
882882      /* --- the following bits of info are returned as NULL-terminated strings --- */
883883      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "atr,dsk,xfd"); break;
r2219r2220
897897      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
898898
899899      /* --- the following bits of info are returned as pointers to data or functions --- */
900      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a800_cart; break;
901      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_a800_cart; break;
900      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a800_cart); break;
901      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(a800_cart); break;
902902
903903      /* --- the following bits of info are returned as NULL-terminated strings --- */
904904      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom,bin"); break;
r2219r2220
922922      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
923923
924924      /* --- the following bits of info are returned as pointers to data or functions --- */
925      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a800_cart; break;
926      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_a800_cart; break;
925      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a800_cart); break;
926      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(a800_cart); break;
927927
928928      /* --- the following bits of info are returned as NULL-terminated strings --- */
929929      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom,bin"); break;
r2219r2220
947947      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
948948
949949      /* --- the following bits of info are returned as pointers to data or functions --- */
950      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a5200_cart; break;
951      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_a5200_cart; break;
950      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a5200_cart); break;
951      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(a5200_cart); break;
952952
953953      /* --- the following bits of info are returned as NULL-terminated strings --- */
954954      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom,bin,a52"); break;
src/mess/drivers/nc.c
r2219r2220
17481748
17491749      /* --- the following bits of info are returned as pointers to data or functions --- */
17501750      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(nc_pcmcia_card); break;
1751      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nc_pcmcia_card; break;
1752      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_nc_pcmcia_card; break;
1751      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nc_pcmcia_card); break;
1752      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(nc_pcmcia_card); break;
17531753
17541754      /* --- the following bits of info are returned as NULL-terminated strings --- */
17551755      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "crd,card"); break;
r2219r2220
17721772
17731773      /* --- the following bits of info are returned as pointers to data or functions --- */
17741774      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
1775      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nc_serial; break;
1775      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nc_serial); break;
17761776      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
17771777
17781778      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/mbee.c
r2219r2220
542542      case MESS_DEVINFO_INT_COUNT:      info->i = 1; break;
543543
544544      /* --- the following bits of info are returned as pointers to data or functions --- */
545      case MESS_DEVINFO_PTR_LOAD:      info->load = device_load_mbee_cart; break;
545      case MESS_DEVINFO_PTR_LOAD:      info->load = DEVICE_IMAGE_LOAD_NAME(mbee_cart); break;
546546
547547      /* --- the following bits of info are returned as NULL-terminated strings --- */
548548      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "rom"); break;
r2219r2220
560560      case MESS_DEVINFO_INT_COUNT:      info->i = 4; break;
561561
562562      /* --- the following bits of info are returned as pointers to data or functions --- */
563      case MESS_DEVINFO_PTR_LOAD:      info->load = device_load_basicdsk_floppy; break;
563      case MESS_DEVINFO_PTR_LOAD:      info->load = DEVICE_IMAGE_LOAD_NAME(basicdsk_floppy); break;
564564
565565      /* --- the following bits of info are returned as NULL-terminated strings --- */
566566      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/pokemini.c
r2219r2220
8181   case MESS_DEVINFO_INT_COUNT:         info->i = 1; break;
8282   case MESS_DEVINFO_INT_MUST_BE_LOADED:   info->i = 0; break;
8383   case MESS_DEVINFO_PTR_START:         info->start = DEVICE_START_NAME(pokemini_cart); break;
84   case MESS_DEVINFO_PTR_LOAD:         info->load = device_load_pokemini_cart; break;
84   case MESS_DEVINFO_PTR_LOAD:         info->load = DEVICE_IMAGE_LOAD_NAME(pokemini_cart); break;
8585   case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy( info->s = device_temp_str(), "min"); break;
8686   default:            cartslot_device_getinfo( devclass, state, info ); break;
8787   }
src/mess/drivers/coco.c
r2219r2220
10261026      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
10271027
10281028      /* --- the following bits of info are returned as pointers to data or functions --- */
1029      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_coco_rom; break;
1030      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_coco_rom; break;
1029      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(coco_rom); break;
1030      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(coco_rom); break;
10311031
10321032      /* --- the following bits of info are returned as NULL-terminated strings --- */
10331033      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "ccc,rom"); break;
r2219r2220
10461046      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
10471047
10481048      /* --- the following bits of info are returned as pointers to data or functions --- */
1049      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_coco3_rom; break;
1050      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_coco3_rom; break;
1049      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(coco3_rom); break;
1050      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(coco3_rom); break;
10511051
10521052      /* --- the following bits of info are returned as NULL-terminated strings --- */
10531053      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "ccc,rom"); break;
src/mess/drivers/nes.c
r2219r2220
349349      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
350350
351351      /* --- the following bits of info are returned as pointers to data or functions --- */
352      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nes_cart; break;
352      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nes_cart); break;
353353      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = nes_partialhash; break;
354354
355355      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
372372      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
373373
374374      /* --- the following bits of info are returned as pointers to data or functions --- */
375      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nes_cart; break;
375      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nes_cart); break;
376376      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = nes_partialhash; break;
377377
378378      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
396396
397397      /* --- the following bits of info are returned as pointers to data or functions --- */
398398      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(nes_disk); break;
399      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nes_disk; break;
400      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_nes_disk; break;
399      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nes_disk); break;
400      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(nes_disk); break;
401401
402402      /* --- the following bits of info are returned as NULL-terminated strings --- */
403403      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk,fds"); break;
src/mess/drivers/ti99_8.c
r2219r2220
514514      case MESS_DEVINFO_INT_COUNT:                     info->i = 3; break;
515515
516516      /* --- the following bits of info are returned as pointers to data or functions --- */
517      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_cart; break;
518      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_cart; break;
517      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_cart); break;
518      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_cart); break;
519519
520520      /* --- the following bits of info are returned as NULL-terminated strings --- */
521521      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break;
r2219r2220
551551
552552      /* --- the following bits of info are returned as pointers to data or functions --- */
553553      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
554      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
555      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
554      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hd); break;
555      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hd); break;
556556
557557      /* --- the following bits of info are returned as NULL-terminated strings --- */
558558      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hd"); break;
r2219r2220
573573      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
574574
575575      /* --- the following bits of info are returned as pointers to data or functions --- */
576      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_pio; break;
577      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_pio; break;
576      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_pio); break;
577      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_pio); break;
578578
579579      /* --- the following bits of info are returned as NULL-terminated strings --- */
580580      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
594594      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
595595
596596      /* --- the following bits of info are returned as pointers to data or functions --- */
597      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_rs232; break;
598      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_rs232; break;
597      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_rs232); break;
598      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_rs232); break;
599599
600600      /* --- the following bits of info are returned as NULL-terminated strings --- */
601601      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
617617      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
618618
619619      /* --- the following bits of info are returned as pointers to data or functions --- */
620      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hsgpl; break;
621      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hsgpl; break;
620      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hsgpl); break;
621      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hsgpl); break;
622622
623623      /* --- the following bits of info are returned as NULL-terminated strings --- */
624624      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
640640
641641      /* --- the following bits of info are returned as pointers to data or functions --- */
642642      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
643      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
644      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
643      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(smartmedia); break;
644      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(smartmedia); break;
645645
646646      /* --- the following bits of info are returned as NULL-terminated strings --- */
647647      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/gb.c
r2219r2220
636636
637637      /* --- the following bits of info are returned as pointers to data or functions --- */
638638      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(gb_cart); break;
639      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_gb_cart; break;
639      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(gb_cart); break;
640640
641641      /* --- the following bits of info are returned as NULL-terminated strings --- */
642642      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "gb,gmb,cgb,gbc,sgb"); break;
r2219r2220
711711      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
712712
713713      /* --- the following bits of info are returned as pointers to data or functions --- */
714      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_megaduck_cart; break;
714      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(megaduck_cart); break;
715715
716716      /* --- the following bits of info are returned as NULL-terminated strings --- */
717717      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin"); break;
src/mess/drivers/msx.c
r2219r2220
21452145      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
21462146
21472147      /* --- the following bits of info are returned as pointers to data or functions --- */
2148      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_msx_floppy; break;
2148      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(msx_floppy); break;
21492149
21502150      /* --- the following bits of info are returned as NULL-terminated strings --- */
21512151      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
r2219r2220
21632163      case MESS_DEVINFO_INT_COUNT:                     info->i = MSX_MAX_CARTS; break;
21642164
21652165      /* --- the following bits of info are returned as pointers to data or functions --- */
2166      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_msx_cart; break;
2167      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_msx_cart; break;
2166      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(msx_cart); break;
2167      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(msx_cart); break;
21682168
21692169      /* --- the following bits of info are returned as NULL-terminated strings --- */
21702170      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "mx1,rom"); break;
src/mess/drivers/gamecom.c
r2219r2220
132132      info->start = DEVICE_START_NAME(gamecom_cart);
133133      break;
134134   case MESS_DEVINFO_PTR_LOAD:
135      info->load = device_load_gamecom_cart;
135      info->load = DEVICE_IMAGE_LOAD_NAME(gamecom_cart);
136136      break;
137137   case MESS_DEVINFO_STR_FILE_EXTENSIONS:
138138      strcpy(info->s = device_temp_str(), "bin,tgc");
src/mess/drivers/tmc600.c
r2219r2220
524524      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
525525
526526      /* --- the following bits of info are returned as pointers to data or functions --- */
527      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_basicdsk_floppy; break;
527      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(basicdsk_floppy); break;
528528
529529      /* --- the following bits of info are returned as NULL-terminated strings --- */
530530      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/vectrex.c
r2219r2220
128128      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
129129
130130      /* --- the following bits of info are returned as pointers to data or functions --- */
131      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vectrex_cart; break;
131      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(vectrex_cart); break;
132132
133133      /* --- the following bits of info are returned as NULL-terminated strings --- */
134134      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin,gam,vec"); break;
src/mess/drivers/arcadia.c
r2219r2220
442442      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
443443
444444      /* --- the following bits of info are returned as pointers to data or functions --- */
445      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_arcadia_cart; break;
445      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(arcadia_cart); break;
446446
447447      /* --- the following bits of info are returned as NULL-terminated strings --- */
448448      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin"); break;
src/mess/drivers/tm990189.c
r2219r2220
10071007      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
10081008
10091009      /* --- the following bits of info are returned as pointers to data or functions --- */
1010      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tm990_189_rs232; break;
1011      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tm990_189_rs232; break;
1010      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tm990_189_rs232); break;
1011      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tm990_189_rs232); break;
10121012
10131013      /* --- the following bits of info are returned as NULL-terminated strings --- */
10141014      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/pasogo.c
r2219r2220
503503      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
504504
505505      /* --- the following bits of info are returned as pointers to data or functions --- */
506      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pasogo_cart; break;
506      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pasogo_cart); break;
507507
508508      /* --- the following bits of info are returned as NULL-terminated strings --- */
509509      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin"); break;
src/mess/drivers/lynx.c
r2219r2220
397397      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
398398
399399      /* --- the following bits of info are returned as pointers to data or functions --- */
400      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_lynx_cart; break;
400      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(lynx_cart); break;
401401      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = lynx_partialhash; break;
402402
403403      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/cgenie.c
r2219r2220
441441      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
442442
443443      /* --- the following bits of info are returned as pointers to data or functions --- */
444      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_cgenie_floppy; break;
444      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(cgenie_floppy); break;
445445
446446      /* --- the following bits of info are returned as NULL-terminated strings --- */
447447      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
r2219r2220
463463      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
464464
465465      /* --- the following bits of info are returned as pointers to data or functions --- */
466      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_cgenie_cassette; break;
466      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(cgenie_cassette); break;
467467
468468      /* --- the following bits of info are returned as NULL-terminated strings --- */
469469      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cas"); break;
src/mess/drivers/abc80.c
r2219r2220
550550      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
551551
552552      /* --- the following bits of info are returned as pointers to data or functions --- */
553      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_abc_floppy; break;
553      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(abc_floppy); break;
554554
555555      /* --- the following bits of info are returned as NULL-terminated strings --- */
556556      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/apexc.c
r2219r2220
843843      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
844844
845845      /* --- the following bits of info are returned as pointers to data or functions --- */
846      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_apexc_cylinder; break;
847      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_apexc_cylinder; break;
846      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(apexc_cylinder); break;
847      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(apexc_cylinder); break;
848848
849849      /* --- the following bits of info are returned as NULL-terminated strings --- */
850850      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "apc"); break;
r2219r2220
862862
863863      /* --- the following bits of info are returned as pointers to data or functions --- */
864864      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(apexc_tape); break;
865      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_apexc_tape; break;
865      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(apexc_tape); break;
866866      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = apexc_get_open_mode; break;
867867
868868      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/x68k.c
r2219r2220
18571857      info->i = 4;
18581858      break;
18591859   case MESS_DEVINFO_PTR_LOAD:
1860      info->load = device_load_x68k_floppy;
1860      info->load = DEVICE_IMAGE_LOAD_NAME(x68k_floppy);
18611861      break;
18621862   case MESS_DEVINFO_PTR_UNLOAD:
1863      info->unload = device_unload_x68k_floppy;
1863      info->unload = DEVICE_IMAGE_UNLOAD_NAME(x68k_floppy);
18641864      break;
18651865   case MESS_DEVINFO_STR_FILE_EXTENSIONS:
18661866      strcpy(info->s = device_temp_str(), "xdf,hdm,2hd,dim");
src/mess/drivers/spectrum.c
r2219r2220
23582358      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
23592359
23602360      /* --- the following bits of info are returned as pointers to data or functions --- */
2361      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_timex_cart; break;
2362      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_timex_cart; break;
2361      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(timex_cart); break;
2362      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(timex_cart); break;
23632363
23642364      /* --- the following bits of info are returned as NULL-terminated strings --- */
23652365      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dck"); break;
src/mess/drivers/kaypro.c
r2219r2220
277277      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
278278
279279      /* --- the following bits of info are returned as pointers to data or functions --- */
280      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_cpm_floppy; break;
280      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(cpm_floppy); break;
281281
282282      /* --- the following bits of info are returned as NULL-terminated strings --- */
283283      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/super80.c
r2219r2220
10421042      case MESS_DEVINFO_INT_COUNT:         info->i = 1; break;
10431043
10441044      /* --- the following bits of info are returned as pointers to data or functions --- */
1045      case MESS_DEVINFO_PTR_LOAD:         info->load = device_load_super80_cart; break;
1045      case MESS_DEVINFO_PTR_LOAD:         info->load = DEVICE_IMAGE_LOAD_NAME(super80_cart); break;
10461046
10471047      /* --- the following bits of info are returned as NULL-terminated strings --- */
10481048      case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy(info->s = device_temp_str(), "rom"); break;
src/mess/drivers/n64.c
r2219r2220
176176      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
177177
178178      /* --- the following bits of info are returned as pointers to data or functions --- */
179      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_n64_cart; break;
179      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(n64_cart); break;
180180
181181      /* --- the following bits of info are returned as NULL-terminated strings --- */
182182      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "v64,z64,rom,n64,bin"); break;
src/mess/drivers/atarist.c
r2219r2220
20672067      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
20682068
20692069      /* --- the following bits of info are returned as pointers to data or functions --- */
2070      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atarist_floppy; break;
2070      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(atarist_floppy); break;
20712071
20722072      /* --- the following bits of info are returned as NULL-terminated strings --- */
20732073      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "st"); break;
r2219r2220
21182118
21192119      /* --- the following bits of info are returned as pointers to data or functions --- */
21202120      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
2121      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atarist_serial; break;
2121      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(atarist_serial); break;
21222122      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
21232123
21242124      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
21372137
21382138      /* --- the following bits of info are returned as pointers to data or functions --- */
21392139      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
2140      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atarist_serial; break;
2140      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(atarist_serial); break;
21412141      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
21422142
21432143      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
21712171      info->i = 1;
21722172      break;
21732173   case MESS_DEVINFO_PTR_LOAD:
2174      info->load = device_load_atarist_cart;
2174      info->load = DEVICE_IMAGE_LOAD_NAME(atarist_cart);
21752175      break;
21762176   case MESS_DEVINFO_STR_FILE_EXTENSIONS:
21772177      strcpy(info->s = device_temp_str(), "stc");
src/mess/drivers/geneve.c
r2219r2220
557557
558558      /* --- the following bits of info are returned as pointers to data or functions --- */
559559      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
560      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
561      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
560      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hd); break;
561      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hd); break;
562562
563563      /* --- the following bits of info are returned as NULL-terminated strings --- */
564564      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hd"); break;
r2219r2220
579579      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
580580
581581      /* --- the following bits of info are returned as pointers to data or functions --- */
582      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_pio; break;
583      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_pio; break;
582      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_pio); break;
583      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_pio); break;
584584
585585      /* --- the following bits of info are returned as NULL-terminated strings --- */
586586      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
600600      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
601601
602602      /* --- the following bits of info are returned as pointers to data or functions --- */
603      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_rs232; break;
604      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_rs232; break;
603      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_rs232); break;
604      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_rs232); break;
605605
606606      /* --- the following bits of info are returned as NULL-terminated strings --- */
607607      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
622622
623623      /* --- the following bits of info are returned as pointers to data or functions --- */
624624      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
625      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
626      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
625      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(smartmedia); break;
626      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(smartmedia); break;
627627
628628      /* --- the following bits of info are returned as NULL-terminated strings --- */
629629      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/sg1000.c
r2219r2220
695695   {
696696      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
697697      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
698      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sg1000_cart; break;
698      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(sg1000_cart); break;
699699      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sg"); break;
700700
701701      default:                              cartslot_device_getinfo( devclass, state, info ); break;
r2219r2220
755755   {
756756      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
757757      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
758      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sc3000_cart; break;
758      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(sc3000_cart); break;
759759      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sg,sc"); break;
760760
761761      default:                              cartslot_device_getinfo( devclass, state, info ); break;
r2219r2220
799799
800800   if (image_length(image) == 256*16*40)
801801   {
802      if (device_load_basicdsk_floppy(image) == INIT_PASS)
802      if (DEVICE_IMAGE_LOAD_NAME(basicdsk_floppy)(image) == INIT_PASS)
803803      {
804804         /* image, tracks, sides, sectors per track, sector length, first sector id, offset of track 0, track skipping */
805805         basicdsk_set_geometry(image, 40, 1, 16, 256, 1, 0, FALSE);
r2219r2220
816816   switch(state)
817817   {
818818      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
819      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sf7000_floppy; break;
819      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(sf7000_floppy); break;
820820      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "sf7"); break;
821821
822822      default:                              legacybasicdsk_device_getinfo(devclass, state, info); break;
r2219r2220
856856
857857      /* --- the following bits of info are returned as pointers to data or functions --- */
858858      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
859      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sf7000_serial; break;
859      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(sf7000_serial); break;
860860      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
861861
862862      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/tx0.c
r2219r2220
407407
408408      /* --- the following bits of info are returned as pointers to data or functions --- */
409409      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_tape); break;
410      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tx0_tape; break;
411      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tx0_tape; break;
410      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_tape); break;
411      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_tape); break;
412412      case MESS_DEVINFO_PTR_GET_DISPOSITIONS:            info->getdispositions = tx0_tape_get_open_mode; break;
413413
414414      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
429429      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
430430
431431      /* --- the following bits of info are returned as pointers to data or functions --- */
432      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tx0_typewriter; break;
433      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tx0_typewriter; break;
432      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_typewriter); break;
433      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_typewriter); break;
434434
435435      /* --- the following bits of info are returned as NULL-terminated strings --- */
436436      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "typ"); break;
r2219r2220
451451
452452      /* --- the following bits of info are returned as pointers to data or functions --- */
453453      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(tx0_magtape); break;
454      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tx0_magtape; break;
455      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tx0_magtape; break;
454      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tx0_magtape); break;
455      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tx0_magtape); break;
456456
457457      /* --- the following bits of info are returned as NULL-terminated strings --- */
458458      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap"); break;
src/mess/drivers/exidy.c
r2219r2220
868868      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
869869
870870      /* --- the following bits of info are returned as pointers to data or functions --- */
871      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_exidy_floppy; break;
871      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(exidy_floppy); break;
872872
873873      /* --- the following bits of info are returned as NULL-terminated strings --- */
874874      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/pc8801.c
r2219r2220
572572
573573      /* --- the following bits of info are returned as pointers to data or functions --- */
574574      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(d88image_floppy); break;
575      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_d88image_floppy; break;
575      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(d88image_floppy); break;
576576
577577      /* --- the following bits of info are returned as NULL-terminated strings --- */
578578      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "d88"); break;
src/mess/drivers/a2600.c
r2219r2220
20102010
20112011      /* --- the following bits of info are returned as pointers to data or functions --- */
20122012      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(a2600_cart); break;
2013      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a2600_cart; break;
2013      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a2600_cart); break;
20142014
20152015      /* --- the following bits of info are returned as NULL-terminated strings --- */
20162016      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin,a26"); break;
src/mess/drivers/studio2.c
r2219r2220
369369      info->i = 1;
370370      break;
371371   case MESS_DEVINFO_PTR_LOAD:
372      info->load = device_load_studio2_cart;
372      info->load = DEVICE_IMAGE_LOAD_NAME(studio2_cart);
373373      break;
374374   case MESS_DEVINFO_STR_FILE_EXTENSIONS:
375375      strcpy(info->s = device_temp_str(), "st2");
src/mess/drivers/c16.c
r2219r2220
809809      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
810810
811811      /* --- the following bits of info are returned as pointers to data or functions --- */
812      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_c16_rom; break;
812      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(c16_rom); break;
813813
814814      /* --- the following bits of info are returned as NULL-terminated strings --- */
815815      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin,rom"); break;
src/mess/drivers/osi.c
r2219r2220
480480      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
481481
482482      /* --- the following bits of info are returned as pointers to data or functions --- */
483      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_sb2m600_cassette; break;
484      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_sb2m600_cassette; break;
483      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(sb2m600_cassette); break;
484      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(sb2m600_cassette); break;
485485
486486      /* --- the following bits of info are returned as NULL-terminated strings --- */
487487      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bas"); break;
src/mess/drivers/bw2.c
r2219r2220
585585   
586586      /* --- the following bits of info are returned as pointers to data or functions --- */
587587      case MESS_DEVINFO_PTR_LOAD:
588         info->load = device_load_bw2_floppy;
588         info->load = DEVICE_IMAGE_LOAD_NAME(bw2_floppy);
589589         break;
590590   
591591      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
626626         info->start = DEVICE_START_NAME(serial_device);
627627         break;
628628      case MESS_DEVINFO_PTR_LOAD:
629         info->load = device_load_bw2_serial;
629         info->load = DEVICE_IMAGE_LOAD_NAME(bw2_serial);
630630         break;
631631      case MESS_DEVINFO_PTR_UNLOAD:
632632         info->unload = serial_device_unload;
src/mess/drivers/oric.c
r2219r2220
571571
572572      /* --- the following bits of info are returned as pointers to data or functions --- */
573573      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(oric_floppy); break;
574      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_oric_floppy; break;
574      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(oric_floppy); break;
575575
576576      /* --- the following bits of info are returned as NULL-terminated strings --- */
577577      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/atom.c
r2219r2220
329329      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
330330
331331      /* --- the following bits of info are returned as pointers to data or functions --- */
332      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_atom_floppy; break;
332      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(atom_floppy); break;
333333
334334      /* --- the following bits of info are returned as NULL-terminated strings --- */
335335      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "ssd"); break;
src/mess/drivers/mekd2.c
r2219r2220
188188      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
189189
190190      /* --- the following bits of info are returned as pointers to data or functions --- */
191      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_mekd2_cart; break;
191      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(mekd2_cart); break;
192192
193193      /* --- the following bits of info are returned as NULL-terminated strings --- */
194194      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "d2"); break;
src/mess/drivers/apf.c
r2219r2220
708708      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
709709
710710      /* --- the following bits of info are returned as pointers to data or functions --- */
711      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_apfimag_floppy; break;
711      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(apfimag_floppy); break;
712712
713713      /* --- the following bits of info are returned as NULL-terminated strings --- */
714714      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "apd"); break;
src/mess/drivers/snes.c
r2219r2220
489489      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
490490
491491      /* --- the following bits of info are returned as pointers to data or functions --- */
492      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_snes_cart; break;
492      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(snes_cart); break;
493493
494494      /* --- the following bits of info are returned as NULL-terminated strings --- */
495495      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "smc,sfc,fig,swc"); break;
src/mess/drivers/vc20.c
r2219r2220
793793
794794      /* --- the following bits of info are returned as pointers to data or functions --- */
795795      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(vc20_rom); break;
796      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vc20_rom; break;
796      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(vc20_rom); break;
797797
798798      /* --- the following bits of info are returned as NULL-terminated strings --- */
799799      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "a0,20,40,60,rom,bin"); break;
src/mess/drivers/ql.c
r2219r2220
10921092      case MESS_DEVINFO_INT_CREATABLE:                  info->i = 0; break;
10931093
10941094      /* --- the following bits of info are returned as pointers to data or functions --- */
1095      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ql_microdrive; break;
1095      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ql_microdrive); break;
10961096
10971097      /* --- the following bits of info are returned as NULL-terminated strings --- */
10981098      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "mdv"); break;
r2219r2220
11291129
11301130      /* --- the following bits of info are returned as pointers to data or functions --- */
11311131      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
1132      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ql_serial; break;
1132      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ql_serial); break;
11331133      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
11341134
11351135      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
11611161      info->i = 1;
11621162      break;
11631163   case MESS_DEVINFO_PTR_LOAD:
1164      info->load = device_load_ql_cart;
1164      info->load = DEVICE_IMAGE_LOAD_NAME(ql_cart);
11651165      break;
11661166   case MESS_DEVINFO_STR_FILE_EXTENSIONS:
11671167      strcpy(info->s = device_temp_str(), "bin");
src/mess/drivers/ti990_10.c
r2219r2220
298298
299299      /* --- the following bits of info are returned as pointers to data or functions --- */
300300      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti990_hd); break;
301      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti990_hd; break;
302      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti990_hd; break;
301      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti990_hd); break;
302      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti990_hd); break;
303303
304304      /* --- the following bits of info are returned as NULL-terminated strings --- */
305305      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hd"); break;
r2219r2220
320320
321321      /* --- the following bits of info are returned as pointers to data or functions --- */
322322      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti990_tape); break;
323      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti990_tape; break;
324      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti990_tape; break;
323      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti990_tape); break;
324      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti990_tape); break;
325325
326326      /* --- the following bits of info are returned as NULL-terminated strings --- */
327327      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap"); break;
src/mess/drivers/abc80x.c
r2219r2220
10181018      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
10191019
10201020      /* --- the following bits of info are returned as pointers to data or functions --- */
1021      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_abc_floppy; break;
1021      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(abc_floppy); break;
10221022
10231023      /* --- the following bits of info are returned as NULL-terminated strings --- */
10241024      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
r2219r2220
10691069
10701070      /* --- the following bits of info are returned as pointers to data or functions --- */
10711071      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(serial_device); break;
1072      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_abc800_serial; break;
1072      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(abc800_serial); break;
10731073      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = serial_device_unload; break;
10741074
10751075      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/tmc2000e.c
r2219r2220
179179   // video hardware
180180
181181   MDRV_SCREEN_ADD("main", RASTER)
182   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
182183   MDRV_SCREEN_RAW_PARAMS(CDP1864_CLK_FREQ, CDP1864_SCREEN_WIDTH, CDP1864_HBLANK_END, CDP1864_HBLANK_START, CDP1864_TOTAL_SCANLINES, CDP1864_SCANLINE_VBLANK_END, CDP1864_SCANLINE_VBLANK_START)
183184
185   MDRV_PALETTE_LENGTH(8)
184186   MDRV_VIDEO_START(cdp1864)
185187   MDRV_VIDEO_UPDATE(cdp1864)
186188
r2219r2220
224226      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
225227
226228      /* --- the following bits of info are returned as pointers to data or functions --- */
227      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_basicdsk_floppy; break;
229      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(basicdsk_floppy); break;
228230
229231      /* --- the following bits of info are returned as NULL-terminated strings --- */
230232      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/crvision.c
r2219r2220
521521      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
522522
523523      /* --- the following bits of info are returned as pointers to data or functions --- */
524      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_crvision_cart; break;
524      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(crvision_cart); break;
525525
526526      /* --- the following bits of info are returned as NULL-terminated strings --- */
527527      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom"); break;
src/mess/drivers/a7800.c
r2219r2220
347347
348348      /* --- the following bits of info are returned as pointers to data or functions --- */
349349      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(a7800_cart); break;
350      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_a7800_cart; break;
350      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(a7800_cart); break;
351351      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = a7800_partialhash; break;
352352
353353      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/nascom1.c
r2219r2220
337337      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
338338
339339      /* --- the following bits of info are returned as pointers to data or functions --- */
340      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nascom1_cassette; break;
341      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_nascom1_cassette; break;
340      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nascom1_cassette); break;
341      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(nascom1_cassette); break;
342342
343343      /* --- the following bits of info are returned as NULL-terminated strings --- */
344344      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cas"); break;
r2219r2220
373373      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
374374
375375      /* --- the following bits of info are returned as pointers to data or functions --- */
376      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_nascom2_floppy; break;
376      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(nascom2_floppy); break;
377377
378378      /* --- the following bits of info are returned as NULL-terminated strings --- */
379379      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/special.c
r2219r2220
465465      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
466466
467467      /* --- the following bits of info are returned as pointers to data or functions --- */
468      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_specimx_floppy; break;
468      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(specimx_floppy); break;
469469
470470      /* --- the following bits of info are returned as NULL-terminated strings --- */
471471      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "odi,img"); break;
src/mess/drivers/intv.c
r2219r2220
436436
437437      /* --- the following bits of info are returned as pointers to data or functions --- */
438438      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(intv_cart); break;
439      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_intv_cart; break;
439      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(intv_cart); break;
440440
441441      /* --- the following bits of info are returned as NULL-terminated strings --- */
442442      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "int,rom"); break;
r2219r2220
458458      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
459459
460460      /* --- the following bits of info are returned as pointers to data or functions --- */
461      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_intvkbd_cart; break;
461      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(intvkbd_cart); break;
462462
463463      /* --- the following bits of info are returned as NULL-terminated strings --- */
464464      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "int,rom,bin"); break;
src/mess/drivers/jupiter.c
r2219r2220
205205      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
206206
207207      /* --- the following bits of info are returned as pointers to data or functions --- */
208      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_jupiter_ace; break;
208      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(jupiter_ace); break;
209209
210210      /* --- the following bits of info are returned as NULL-terminated strings --- */
211211      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "ace"); break;
r2219r2220
228228      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
229229
230230      /* --- the following bits of info are returned as pointers to data or functions --- */
231      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_jupiter_tap; break;
232      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_jupiter_tap; break;
231      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(jupiter_tap); break;
232      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(jupiter_tap); break;
233233
234234      /* --- the following bits of info are returned as NULL-terminated strings --- */
235235      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "tap"); break;
src/mess/drivers/osborne1.c
r2219r2220
184184static void osborne1_floppy_getinfo( const mess_device_class *devclass, UINT32 state, union devinfo *info ) {
185185   switch( state ) {
186186   case MESS_DEVINFO_INT_COUNT:            info->i = 2; break;
187   case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_osborne1_floppy; break;
187   case MESS_DEVINFO_PTR_LOAD:            info->load = DEVICE_IMAGE_LOAD_NAME(osborne1_floppy); break;
188188   case MESS_DEVINFO_STR_FILE_EXTENSIONS:   strcpy( info->s = device_temp_str(), "img" ); break;
189189   default:                     legacybasicdsk_device_getinfo( devclass, state, info ); break;
190190   }
src/mess/drivers/vtech1.c
r2219r2220
517517      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
518518
519519      /* --- the following bits of info are returned as pointers to data or functions --- */
520      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vtech1_floppy; break;
520      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(vtech1_floppy); break;
521521
522522      /* --- the following bits of info are returned as NULL-terminated strings --- */
523523      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/amstrad.c
r2219r2220
31403140      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
31413141
31423142      /* --- the following bits of info are returned as pointers to data or functions --- */
3143      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_amstrad_plus_cartridge; break;
3143      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(amstrad_plus_cartridge); break;
31443144
31453145      /* --- the following bits of info are returned as NULL-terminated strings --- */
31463146      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cpr,bin"); break;
r2219r2220
31733173   {
31743174      /* --- the following bits of info are returned as 64-bit signed integers --- */
31753175      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
3176      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_msx_floppy; break;
3176      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(msx_floppy); break;
31773177      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
31783178
31793179      default:                              legacybasicdsk_device_getinfo(devclass, state, info); break;
src/mess/drivers/sms.c
r2219r2220
510510
511511      /* --- the following bits of info are returned as pointers to data or functions --- */
512512      case MESS_DEVINFO_PTR_START:            info->start = DEVICE_START_NAME(sms_cart); break;
513      case MESS_DEVINFO_PTR_LOAD:            info->load = device_load_sms_cart; break;
513      case MESS_DEVINFO_PTR_LOAD:            info->load = DEVICE_IMAGE_LOAD_NAME(sms_cart); break;
514514
515515      /* --- the following bits of info are returned as NULL-terminated strings --- */
516516      case MESS_DEVINFO_STR_FILE_EXTENSIONS:      strcpy(info->s = device_temp_str(), "sms"); break;
src/mess/drivers/tutor.c
r2219r2220
606606      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
607607
608608      /* --- the following bits of info are returned as pointers to data or functions --- */
609      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_tutor_cart; break;
610      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_tutor_cart; break;
609      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(tutor_cart); break;
610      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(tutor_cart); break;
611611
612612      /* --- the following bits of info are returned as NULL-terminated strings --- */
613613      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/trs80.c
r2219r2220
461461      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
462462
463463      /* --- the following bits of info are returned as pointers to data or functions --- */
464      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_trs80_cas; break;
465      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_trs80_cas; break;
464      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(trs80_cas); break;
465      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(trs80_cas); break;
466466
467467      /* --- the following bits of info are returned as NULL-terminated strings --- */
468468      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "cas"); break;
r2219r2220
502502      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
503503
504504      /* --- the following bits of info are returned as pointers to data or functions --- */
505      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_trs80_floppy; break;
505      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(trs80_floppy); break;
506506
507507      /* --- the following bits of info are returned as NULL-terminated strings --- */
508508      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/ti85.c
r2219r2220
492492
493493      /* --- the following bits of info are returned as pointers to data or functions --- */
494494      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti85_serial); break;
495      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti85_serial; break;
496      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti85_serial; break;
495      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti85_serial); break;
496      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti85_serial); break;
497497
498498      /* --- the following bits of info are returned as NULL-terminated strings --- */
499499      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "85p,85s,85i,85n,85c,85l,85k,85m,85v,85d,85e,85r,85g,85b"); break;
r2219r2220
534534
535535      /* --- the following bits of info are returned as pointers to data or functions --- */
536536      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti85_serial); break;
537      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti85_serial; break;
538      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti85_serial; break;
537      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti85_serial); break;
538      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti85_serial); break;
539539
540540      /* --- the following bits of info are returned as NULL-terminated strings --- */
541541      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "86p,86s,86i,86n,86c,86l,86k,86m,86v,86d,86e,86r,86g"); break;
src/mess/drivers/svi318.c
r2219r2220
517517         info->start = DEVICE_START_NAME(svi318_cart);
518518         break;
519519      case MESS_DEVINFO_PTR_LOAD:
520         info->load = device_load_svi318_cart;
520         info->load = DEVICE_IMAGE_LOAD_NAME(svi318_cart);
521521         break;
522522      case MESS_DEVINFO_PTR_UNLOAD:
523         info->unload = device_unload_svi318_cart;
523         info->unload = DEVICE_IMAGE_UNLOAD_NAME(svi318_cart);
524524         break;
525525
526526      /* --- the following bits of info are returned as NULL-terminated strings --- */
r2219r2220
546546
547547      /* --- the following bits of info are returned as pointers to data or functions --- */
548548      case MESS_DEVINFO_PTR_LOAD:
549         info->load = device_load_svi318_floppy;
549         info->load = DEVICE_IMAGE_LOAD_NAME(svi318_floppy);
550550         break;
551551
552552      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/genesis.c
r2219r2220
403403      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
404404
405405      /* --- the following bits of info are returned as pointers to data or functions --- */
406      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_genesis_cart; break;
406      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(genesis_cart); break;
407407      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = NULL;
408      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_genesis_cart; break;
408      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(genesis_cart); break;
409409
410410      /* --- the following bits of info are returned as NULL-terminated strings --- */
411411      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "smd,bin,md,gen"); break;
src/mess/drivers/ti99_4p.c
r2219r2220
346346
347347      /* --- the following bits of info are returned as pointers to data or functions --- */
348348      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
349      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
350      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
349      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hd); break;
350      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hd); break;
351351
352352      /* --- the following bits of info are returned as NULL-terminated strings --- */
353353      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hd"); break;
r2219r2220
367367      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
368368
369369      /* --- the following bits of info are returned as pointers to data or functions --- */
370      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_pio; break;
371      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_pio; break;
370      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_pio); break;
371      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_pio); break;
372372
373373      /* --- the following bits of info are returned as NULL-terminated strings --- */
374374      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
388388      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
389389
390390      /* --- the following bits of info are returned as pointers to data or functions --- */
391      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_rs232; break;
392      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_rs232; break;
391      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_rs232); break;
392      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_rs232); break;
393393
394394      /* --- the following bits of info are returned as NULL-terminated strings --- */
395395      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
411411      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
412412
413413      /* --- the following bits of info are returned as pointers to data or functions --- */
414      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hsgpl; break;
415      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hsgpl; break;
414      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hsgpl); break;
415      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hsgpl); break;
416416   }
417417}
418418#endif
r2219r2220
431431
432432      /* --- the following bits of info are returned as pointers to data or functions --- */
433433      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
434      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
435      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
434      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(smartmedia); break;
435      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(smartmedia); break;
436436
437437      /* --- the following bits of info are returned as NULL-terminated strings --- */
438438      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/pce.c
r2219r2220
236236      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
237237
238238      /* --- the following bits of info are returned as pointers to data or functions --- */
239      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_pce_cart; break;
239      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(pce_cart); break;
240240      case MESS_DEVINFO_PTR_PARTIAL_HASH:               info->partialhash = pce_partialhash; break;
241241
242242      /* --- the following bits of info are returned as NULL-terminated strings --- */
src/mess/drivers/ti99_4x.c
r2219r2220
782782
783783      /* --- the following bits of info are returned as pointers to data or functions --- */
784784      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(ti99_cart); break;
785      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_cart; break;
786      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_cart; break;
785      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_cart); break;
786      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_cart); break;
787787
788788      /* --- the following bits of info are returned as NULL-terminated strings --- */
789789      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "bin,c,d,g,m,crom,drom,grom,mrom"); break;
r2219r2220
821821
822822      /* --- the following bits of info are returned as pointers to data or functions --- */
823823      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(mess_hd); break;
824      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hd; break;
825      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hd; break;
824      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hd); break;
825      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hd); break;
826826
827827      /* --- the following bits of info are returned as NULL-terminated strings --- */
828828      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "hd"); break;
r2219r2220
843843      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
844844
845845      /* --- the following bits of info are returned as pointers to data or functions --- */
846      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_pio; break;
847      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_pio; break;
846      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_pio); break;
847      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_pio); break;
848848
849849      /* --- the following bits of info are returned as NULL-terminated strings --- */
850850      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
864864      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
865865
866866      /* --- the following bits of info are returned as pointers to data or functions --- */
867      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_4_rs232; break;
868      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_4_rs232; break;
867      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_4_rs232); break;
868      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_4_rs232); break;
869869
870870      /* --- the following bits of info are returned as NULL-terminated strings --- */
871871      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
r2219r2220
887887      case MESS_DEVINFO_INT_RESET_ON_LOAD:               info->i = 1; break;
888888
889889      /* --- the following bits of info are returned as pointers to data or functions --- */
890      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_ti99_hsgpl; break;
891      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_ti99_hsgpl; break;
890      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(ti99_hsgpl); break;
891      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(ti99_hsgpl); break;
892892   }
893893}
894894#endif
r2219r2220
907907
908908      /* --- the following bits of info are returned as pointers to data or functions --- */
909909      case MESS_DEVINFO_PTR_START:                     info->start = DEVICE_START_NAME(smartmedia); break;
910      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_smartmedia; break;
911      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_smartmedia; break;
910      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(smartmedia); break;
911      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(smartmedia); break;
912912
913913      /* --- the following bits of info are returned as NULL-terminated strings --- */
914914      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), ""); break;
src/mess/drivers/vc4000.c
r2219r2220
284284      case MESS_DEVINFO_INT_MUST_BE_LOADED:            info->i = 1; break;
285285
286286      /* --- the following bits of info are returned as pointers to data or functions --- */
287      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_vc4000_cart; break;
287      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(vc4000_cart); break;
288288
289289      /* --- the following bits of info are returned as NULL-terminated strings --- */
290290      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom,bin"); break;
src/mess/drivers/bbc.c
r2219r2220
818818      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
819819
820820      /* --- the following bits of info are returned as pointers to data or functions --- */
821      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_bbcb_cart; break;
821      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(bbcb_cart); break;
822822
823823      /* --- the following bits of info are returned as NULL-terminated strings --- */
824824      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom"); break;
r2219r2220
836836      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
837837
838838      /* --- the following bits of info are returned as pointers to data or functions --- */
839      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_bbc_floppy; break;
839      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(bbc_floppy); break;
840840
841841      /* --- the following bits of info are returned as NULL-terminated strings --- */
842842      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "ssd,bbc,img"); break;
src/mess/drivers/gamepock.c
r2219r2220
8585   case MESS_DEVINFO_INT_COUNT:                              info->i = 1; break;
8686   case MESS_DEVINFO_INT_MUST_BE_LOADED:                     info->i = 0; break;
8787   case MESS_DEVINFO_PTR_START:                              info->start = DEVICE_START_NAME(gamepock_cart); break;
88   case MESS_DEVINFO_PTR_LOAD:                              info->load = device_load_gamepock_cart; break;
88   case MESS_DEVINFO_PTR_LOAD:                              info->load = DEVICE_IMAGE_LOAD_NAME(gamepock_cart); break;
8989   case MESS_DEVINFO_STR_FILE_EXTENSIONS:                     strcpy( info->s = device_temp_str(), "bin" ); break;
9090   default:                                       cartslot_device_getinfo(devclass, state, info); break;
9191   }
src/mess/drivers/vtech2.c
r2219r2220
560560      case MESS_DEVINFO_INT_COUNT:                     info->i = 1; break;
561561
562562      /* --- the following bits of info are returned as pointers to data or functions --- */
563      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_laser_cart; break;
564      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = device_unload_laser_cart; break;
563      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(laser_cart); break;
564      case MESS_DEVINFO_PTR_UNLOAD:                  info->unload = DEVICE_IMAGE_UNLOAD_NAME(laser_cart); break;
565565
566566      /* --- the following bits of info are returned as NULL-terminated strings --- */
567567      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "rom"); break;
r2219r2220
583583      case MESS_DEVINFO_INT_COUNT:                     info->i = 2; break;
584584
585585      /* --- the following bits of info are returned as pointers to data or functions --- */
586      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_laser_floppy; break;
586      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(laser_floppy); break;
587587
588588      /* --- the following bits of info are returned as NULL-terminated strings --- */
589589      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;
src/mess/drivers/kc.c
r2219r2220
462462      case MESS_DEVINFO_INT_COUNT:                     info->i = 4; break;
463463
464464      /* --- the following bits of info are returned as pointers to data or functions --- */
465      case MESS_DEVINFO_PTR_LOAD:                     info->load = device_load_kc85_floppy; break;
465      case MESS_DEVINFO_PTR_LOAD:                     info->load = DEVICE_IMAGE_LOAD_NAME(kc85_floppy); break;
466466
467467      /* --- the following bits of info are returned as NULL-terminated strings --- */
468468      case MESS_DEVINFO_STR_FILE_EXTENSIONS:            strcpy(info->s = device_temp_str(), "dsk"); break;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team