src/build/makedev.c
| r14584 | r14585 | |
| 1 | | /*************************************************************************** |
| 2 | | |
| 3 | | makedev.c |
| 4 | | |
| 5 | | Create and sort the driver list. |
| 6 | | |
| 7 | | **************************************************************************** |
| 8 | | |
| 9 | | Copyright Aaron Giles |
| 10 | | All rights reserved. |
| 11 | | |
| 12 | | Redistribution and use in source and binary forms, with or without |
| 13 | | modification, are permitted provided that the following conditions are |
| 14 | | met: |
| 15 | | |
| 16 | | * Redistributions of source code must retain the above copyright |
| 17 | | notice, this list of conditions and the following disclaimer. |
| 18 | | * Redistributions in binary form must reproduce the above copyright |
| 19 | | notice, this list of conditions and the following disclaimer in |
| 20 | | the documentation and/or other materials provided with the |
| 21 | | distribution. |
| 22 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 23 | | used to endorse or promote products derived from this software |
| 24 | | without specific prior written permission. |
| 25 | | |
| 26 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 27 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 28 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 29 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 30 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 31 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 32 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 33 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 34 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 35 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 36 | | POSSIBILITY OF SUCH DAMAGE. |
| 37 | | |
| 38 | | ***************************************************************************/ |
| 39 | | |
| 40 | | #include <stdio.h> |
| 41 | | #include <stdlib.h> |
| 42 | | #include <ctype.h> |
| 43 | | #include "corefile.h" |
| 44 | | |
| 45 | | |
| 46 | | #define MAX_DEVICES 65536 |
| 47 | | #define MAX_IGNORE 512 |
| 48 | | |
| 49 | | static const char *devlist[MAX_DEVICES]; |
| 50 | | static int devcount; |
| 51 | | static const char *ignorelst[MAX_IGNORE]; |
| 52 | | static int ignorecount; |
| 53 | | |
| 54 | | |
| 55 | | //------------------------------------------------- |
| 56 | | // driver_sort_callback - compare two items in |
| 57 | | // a string array |
| 58 | | //------------------------------------------------- |
| 59 | | |
| 60 | | int sort_callback(const void *elem1, const void *elem2) |
| 61 | | { |
| 62 | | const char **item1 = (const char **)elem1; |
| 63 | | const char **item2 = (const char **)elem2; |
| 64 | | return strcmp(*item1, *item2); |
| 65 | | } |
| 66 | | |
| 67 | | //------------------------------------------------- |
| 68 | | // isignored - return info if item is in ignore |
| 69 | | // list or not |
| 70 | | //------------------------------------------------- |
| 71 | | |
| 72 | | bool isignored(const char *drivname) |
| 73 | | { |
| 74 | | if (ignorecount>0) { |
| 75 | | for(int i=0;i<ignorecount;i++) { |
| 76 | | if (strcmp(ignorelst[i],drivname)==0) return true; |
| 77 | | } |
| 78 | | } |
| 79 | | return false; |
| 80 | | } |
| 81 | | |
| 82 | | //------------------------------------------------- |
| 83 | | // parse_file - parse a single file, may be |
| 84 | | // called recursively |
| 85 | | //------------------------------------------------- |
| 86 | | |
| 87 | | int parse_file(const char *srcfile) |
| 88 | | { |
| 89 | | // read source file |
| 90 | | void *buffer; |
| 91 | | UINT32 length; |
| 92 | | file_error filerr = core_fload(srcfile, &buffer, &length); |
| 93 | | if (filerr != FILERR_NONE) |
| 94 | | { |
| 95 | | fprintf(stderr, "Unable to read source file '%s'\n", srcfile); |
| 96 | | return 1; |
| 97 | | } |
| 98 | | |
| 99 | | // rip through it to find all drivers |
| 100 | | char *srcptr = (char *)buffer; |
| 101 | | char *endptr = srcptr + length; |
| 102 | | int linenum = 1; |
| 103 | | bool in_comment = false; |
| 104 | | while (srcptr < endptr) |
| 105 | | { |
| 106 | | char c = *srcptr++; |
| 107 | | |
| 108 | | // count newlines |
| 109 | | if (c == 13 || c == 10) |
| 110 | | { |
| 111 | | if (c == 13 && *srcptr == 10) |
| 112 | | srcptr++; |
| 113 | | linenum++; |
| 114 | | continue; |
| 115 | | } |
| 116 | | |
| 117 | | // skip any spaces |
| 118 | | if (isspace(c)) |
| 119 | | continue; |
| 120 | | |
| 121 | | // look for end of C comment |
| 122 | | if (in_comment && c == '*' && *srcptr == '/') |
| 123 | | { |
| 124 | | srcptr++; |
| 125 | | in_comment = false; |
| 126 | | continue; |
| 127 | | } |
| 128 | | |
| 129 | | // skip anything else inside a C comment |
| 130 | | if (in_comment) |
| 131 | | continue; |
| 132 | | |
| 133 | | // look for start of C comment |
| 134 | | if (c == '/' && *srcptr == '*') |
| 135 | | { |
| 136 | | srcptr++; |
| 137 | | in_comment = true; |
| 138 | | continue; |
| 139 | | } |
| 140 | | |
| 141 | | // if we hit a C++ comment, scan to the end of line |
| 142 | | if (c == '/' && *srcptr == '/') |
| 143 | | { |
| 144 | | while (srcptr < endptr && *srcptr != 13 && *srcptr != 10) |
| 145 | | srcptr++; |
| 146 | | continue; |
| 147 | | } |
| 148 | | |
| 149 | | // look for an import directive |
| 150 | | if (c == '#') |
| 151 | | { |
| 152 | | char filename[256]; |
| 153 | | filename[0] = 0; |
| 154 | | for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(filename) - 1 && !isspace(*srcptr); pos++) |
| 155 | | { |
| 156 | | filename[pos] = *srcptr++; |
| 157 | | filename[pos+1] = 0; |
| 158 | | } |
| 159 | | fprintf(stderr, "Importing devices from '%s'\n", filename); |
| 160 | | parse_file(filename); |
| 161 | | continue; |
| 162 | | } |
| 163 | | if (c == '!') |
| 164 | | { |
| 165 | | char drivname[256]; |
| 166 | | drivname[0] = 0; |
| 167 | | for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(drivname) - 1 && !isspace(*srcptr); pos++) |
| 168 | | { |
| 169 | | drivname[pos] = *srcptr++; |
| 170 | | drivname[pos+1] = 0; |
| 171 | | } |
| 172 | | fprintf(stderr, "Place device '%s' to ignore list\n", drivname); |
| 173 | | char *name = (char *)malloc(strlen(drivname) + 1); |
| 174 | | strcpy(name, drivname); |
| 175 | | ignorelst[ignorecount++] = name; |
| 176 | | continue; |
| 177 | | } |
| 178 | | |
| 179 | | // otherwise treat as a device name |
| 180 | | char drivname[32]; |
| 181 | | drivname[0] = 0; |
| 182 | | srcptr--; |
| 183 | | for (int pos = 0; srcptr < endptr && pos < ARRAY_LENGTH(drivname) - 1 && !isspace(*srcptr); pos++) |
| 184 | | { |
| 185 | | drivname[pos] = *srcptr++; |
| 186 | | drivname[pos+1] = 0; |
| 187 | | } |
| 188 | | |
| 189 | | // verify the name as valid |
| 190 | | for (char *drivch = drivname; *drivch != 0; drivch++) |
| 191 | | { |
| 192 | | if ((*drivch >= 'A' && *drivch <= 'Z') || (*drivch >= '0' && *drivch <= '9') || *drivch == '_') |
| 193 | | continue; |
| 194 | | fprintf(stderr, "%s:%d - Invalid character '%c' in device type \"%s\"\n", srcfile, linenum, *drivch, drivname); |
| 195 | | return 1; |
| 196 | | } |
| 197 | | |
| 198 | | // add it to the list |
| 199 | | if(!isignored(drivname)) |
| 200 | | { |
| 201 | | char *name = (char *)malloc(strlen(drivname) + 1); |
| 202 | | strcpy(name, drivname); |
| 203 | | devlist[devcount++] = name; |
| 204 | | } |
| 205 | | } |
| 206 | | |
| 207 | | osd_free(buffer); |
| 208 | | |
| 209 | | return 0; |
| 210 | | } |
| 211 | | |
| 212 | | |
| 213 | | //------------------------------------------------- |
| 214 | | // main - primary entry point |
| 215 | | //------------------------------------------------- |
| 216 | | |
| 217 | | int main(int argc, char *argv[]) |
| 218 | | { |
| 219 | | // needs at least 1 argument |
| 220 | | if (argc < 2) |
| 221 | | { |
| 222 | | fprintf(stderr, |
| 223 | | "Usage:\n" |
| 224 | | " makedev <source.lst>\n" |
| 225 | | ); |
| 226 | | return 0; |
| 227 | | } |
| 228 | | |
| 229 | | // extract arguments |
| 230 | | const char *srcfile = argv[1]; |
| 231 | | |
| 232 | | // parse the root file, exit early upon failure |
| 233 | | devcount = 0; |
| 234 | | if (parse_file(srcfile)) |
| 235 | | return 1; |
| 236 | | |
| 237 | | // output a count |
| 238 | | if (devcount == 0) |
| 239 | | { |
| 240 | | fprintf(stderr, "No devices found\n"); |
| 241 | | } else { |
| 242 | | fprintf(stderr, "%d devices found\n", devcount); |
| 243 | | } |
| 244 | | |
| 245 | | // sort the list |
| 246 | | qsort(devlist, devcount, sizeof(*devlist), sort_callback); |
| 247 | | |
| 248 | | // start with a header |
| 249 | | printf("#include \"emu.h\"\n\n"); |
| 250 | | |
| 251 | | // output the list of externs first |
| 252 | | for (int index = 0; index < devcount; index++) |
| 253 | | printf("extern const device_type %s;\n", devlist[index]); |
| 254 | | printf("\n"); |
| 255 | | |
| 256 | | // then output the array |
| 257 | | printf("const device_type * s_devices_sorted[] =\n"); |
| 258 | | printf("{\n"); |
| 259 | | for (int index = 0; index < devcount; index++) |
| 260 | | printf("\t&%s%s\n", devlist[index], (index == devcount - 1) ? "" : ","); |
| 261 | | printf("};\n"); |
| 262 | | printf("\n"); |
| 263 | | |
| 264 | | // also output a global count |
| 265 | | printf("int m_device_count = %d;\n", devcount); |
| 266 | | |
| 267 | | return 0; |
| 268 | | } |
src/mame/tiny_dev.lst
| r14584 | r14585 | |
| 1 | | /****************************************************************************** |
| 2 | | |
| 3 | | tiny_dev.lst |
| 4 | | |
| 5 | | List of all enabled devices in the system. This file is parsed by |
| 6 | | makedev.exe, sorted, and output as C code describing the devices. |
| 7 | | |
| 8 | | **************************************************************************** |
| 9 | | |
| 10 | | Copyright Aaron Giles |
| 11 | | All rights reserved. |
| 12 | | |
| 13 | | Redistribution and use in source and binary forms, with or without |
| 14 | | modification, are permitted provided that the following conditions are |
| 15 | | met: |
| 16 | | |
| 17 | | * Redistributions of source code must retain the above copyright |
| 18 | | notice, this list of conditions and the following disclaimer. |
| 19 | | * Redistributions in binary form must reproduce the above copyright |
| 20 | | notice, this list of conditions and the following disclaimer in |
| 21 | | the documentation and/or other materials provided with the |
| 22 | | distribution. |
| 23 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 24 | | used to endorse or promote products derived from this software |
| 25 | | without specific prior written permission. |
| 26 | | |
| 27 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 28 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | | POSSIBILITY OF SUCH DAMAGE. |
| 38 | | |
| 39 | | ******************************************************************************/ |
src/mame/mame_dev.lst
| r14584 | r14585 | |
| 1 | | /****************************************************************************** |
| 2 | | |
| 3 | | mame_dev.lst |
| 4 | | |
| 5 | | List of all enabled devices in the system. This file is parsed by |
| 6 | | makedev.exe, sorted, and output as C code describing the devices. |
| 7 | | |
| 8 | | **************************************************************************** |
| 9 | | |
| 10 | | Copyright Aaron Giles |
| 11 | | All rights reserved. |
| 12 | | |
| 13 | | Redistribution and use in source and binary forms, with or without |
| 14 | | modification, are permitted provided that the following conditions are |
| 15 | | met: |
| 16 | | |
| 17 | | * Redistributions of source code must retain the above copyright |
| 18 | | notice, this list of conditions and the following disclaimer. |
| 19 | | * Redistributions in binary form must reproduce the above copyright |
| 20 | | notice, this list of conditions and the following disclaimer in |
| 21 | | the documentation and/or other materials provided with the |
| 22 | | distribution. |
| 23 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 24 | | used to endorse or promote products derived from this software |
| 25 | | without specific prior written permission. |
| 26 | | |
| 27 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 28 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | | POSSIBILITY OF SUCH DAMAGE. |
| 38 | | |
| 39 | | ******************************************************************************/ |
| 40 | | |
| 41 | | BSMT2000 |
| 42 | | H63484 |
| 43 | | NAMCO_50XX |
| 44 | | NAMCO_51XX |
| 45 | | NAMCO_52XX |
| 46 | | NAMCO_53XX |
| 47 | | NAMCO_54XX |
| 48 | | NAMCO_62XX |
| 49 | | MIE |
| 50 | | PHILLIPS_22VP931 |
| 51 | | PIONEER_LDV1000 |
| 52 | | PIONEER_PR8210 |
| 53 | | SIMUTREK_SPECIAL |
src/emu/clifront.c
| r14584 | r14585 | |
| 732 | 732 | // verifyroms - verify the ROM sets of one or |
| 733 | 733 | // more games |
| 734 | 734 | //------------------------------------------------- |
| 735 | | extern int m_device_count; |
| 736 | | extern const device_type *s_devices_sorted[]; |
| 737 | | |
| 738 | 735 | void cli_frontend::verifyroms(const char *gamename) |
| 739 | 736 | { |
| 740 | 737 | // determine which drivers to output; |
| r14584 | r14585 | |
| 797 | 794 | } |
| 798 | 795 | |
| 799 | 796 | driver_enumerator dummy_drivlist(m_options); |
| 800 | | dummy_drivlist.next(); |
| 801 | | machine_config &config = dummy_drivlist.config(); |
| 802 | | device_t *owner = &config.root_device(); |
| 803 | | // check if all are listed, note that empty one is included |
| 804 | | for (int i = 0; i < m_device_count; i++) |
| 797 | typedef tagmap_t<FPTR> int_map; |
| 798 | int_map device_map; |
| 799 | while (dummy_drivlist.next()) |
| 805 | 800 | { |
| 806 | | device_type type = *s_devices_sorted[i]; |
| 807 | | device_t *dev = (*type)(config, "dummy", owner, 0); |
| 808 | | dev->config_complete(); |
| 801 | machine_config &config = dummy_drivlist.config(); |
| 802 | device_iterator iter(config.root_device()); |
| 803 | for (device_t *dev = iter.first(); dev != NULL; dev = iter.next()) |
| 804 | { |
| 805 | if ((strlen(dev->shortname())>0) && dev->rom_region() != NULL && (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE)) { |
| 806 | if (mame_strwildcmp(gamename, dev->shortname()) == 0) |
| 807 | { |
| 808 | matched++; |
| 809 | 809 | |
| 810 | | if (mame_strwildcmp(gamename, dev->shortname()) == 0) |
| 811 | | { |
| 812 | | matched++; |
| 810 | // audit the ROMs in this set |
| 811 | media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST); |
| 813 | 812 | |
| 814 | | // audit the ROMs in this set |
| 815 | | media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST); |
| 813 | // if not found, count that and leave it at that |
| 814 | if (summary == media_auditor::NOTFOUND) { |
| 815 | notfound++; |
| 816 | } |
| 817 | // else display information about what we discovered |
| 818 | else |
| 819 | { |
| 820 | // output the summary of the audit |
| 821 | astring summary_string; |
| 822 | auditor.summarize(dev->shortname(),&summary_string); |
| 823 | mame_printf_info("%s", summary_string.cstr()); |
| 816 | 824 | |
| 817 | | // if not found, count that and leave it at that |
| 818 | | if (summary == media_auditor::NOTFOUND) |
| 819 | | notfound++; |
| 825 | // display information about what we discovered |
| 826 | mame_printf_info("romset %s ", dev->shortname()); |
| 820 | 827 | |
| 821 | | // else display information about what we discovered |
| 822 | | else |
| 828 | // switch off of the result |
| 829 | switch (summary) |
| 830 | { |
| 831 | case media_auditor::INCORRECT: |
| 832 | mame_printf_info("is bad\n"); |
| 833 | incorrect++; |
| 834 | break; |
| 835 | |
| 836 | case media_auditor::CORRECT: |
| 837 | mame_printf_info("is good\n"); |
| 838 | correct++; |
| 839 | break; |
| 840 | |
| 841 | case media_auditor::BEST_AVAILABLE: |
| 842 | mame_printf_info("is best available\n"); |
| 843 | correct++; |
| 844 | break; |
| 845 | |
| 846 | default: |
| 847 | break; |
| 848 | } |
| 849 | } |
| 850 | } |
| 851 | } |
| 852 | } |
| 853 | |
| 854 | slot_interface_iterator slotiter(config.root_device()); |
| 855 | for (const device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next()) |
| 856 | { |
| 857 | const slot_interface* intf = slot->get_slot_interfaces(); |
| 858 | for (int i = 0; intf && intf[i].name != NULL; i++) |
| 823 | 859 | { |
| 824 | | // output the summary of the audit |
| 825 | | astring summary_string; |
| 826 | | auditor.summarize(dev->shortname(),&summary_string); |
| 827 | | mame_printf_info("%s", summary_string.cstr()); |
| 860 | astring temptag("_"); |
| 861 | temptag.cat(intf[i].name); |
| 862 | device_t *dev = const_cast<machine_config &>(config).device_add(&config.root_device(), temptag.cstr(), intf[i].devtype, 0); |
| 828 | 863 | |
| 829 | | // display information about what we discovered |
| 830 | | mame_printf_info("romset %s ", dev->shortname()); |
| 864 | // notify this device and all its subdevices that they are now configured |
| 865 | device_iterator subiter(*dev); |
| 866 | for (device_t *device = subiter.first(); device != NULL; device = subiter.next()) |
| 867 | if (!device->configured()) |
| 868 | device->config_complete(); |
| 869 | |
| 870 | if (dev->rom_region() != NULL && device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE) { |
| 871 | if (mame_strwildcmp(gamename, dev->shortname()) == 0) |
| 872 | { |
| 873 | matched++; |
| 831 | 874 | |
| 832 | | // switch off of the result |
| 833 | | switch (summary) |
| 834 | | { |
| 835 | | case media_auditor::INCORRECT: |
| 836 | | mame_printf_info("is bad\n"); |
| 837 | | incorrect++; |
| 838 | | break; |
| 875 | // audit the ROMs in this set |
| 876 | media_auditor::summary summary = auditor.audit_device(dev, AUDIT_VALIDATE_FAST); |
| 839 | 877 | |
| 840 | | case media_auditor::CORRECT: |
| 841 | | mame_printf_info("is good\n"); |
| 842 | | correct++; |
| 843 | | break; |
| 878 | // if not found, count that and leave it at that |
| 879 | if (summary == media_auditor::NOTFOUND) |
| 880 | notfound++; |
| 844 | 881 | |
| 845 | | case media_auditor::BEST_AVAILABLE: |
| 846 | | mame_printf_info("is best available\n"); |
| 847 | | correct++; |
| 848 | | break; |
| 882 | // else display information about what we discovered |
| 883 | else |
| 884 | { |
| 885 | // output the summary of the audit |
| 886 | astring summary_string; |
| 887 | auditor.summarize(dev->shortname(),&summary_string); |
| 888 | mame_printf_info("%s", summary_string.cstr()); |
| 849 | 889 | |
| 850 | | default: |
| 851 | | break; |
| 890 | // display information about what we discovered |
| 891 | mame_printf_info("romset %s ", dev->shortname()); |
| 892 | |
| 893 | // switch off of the result |
| 894 | switch (summary) |
| 895 | { |
| 896 | case media_auditor::INCORRECT: |
| 897 | mame_printf_info("is bad\n"); |
| 898 | incorrect++; |
| 899 | break; |
| 900 | |
| 901 | case media_auditor::CORRECT: |
| 902 | mame_printf_info("is good\n"); |
| 903 | correct++; |
| 904 | break; |
| 905 | |
| 906 | case media_auditor::BEST_AVAILABLE: |
| 907 | mame_printf_info("is best available\n"); |
| 908 | correct++; |
| 909 | break; |
| 910 | |
| 911 | default: |
| 912 | break; |
| 913 | } |
| 914 | } |
| 915 | } |
| 852 | 916 | } |
| 917 | |
| 918 | const_cast<machine_config &>(config).device_remove(&config.root_device(), temptag.cstr()); |
| 919 | global_free(dev); |
| 853 | 920 | } |
| 854 | | } |
| 855 | | |
| 856 | | global_free(dev); |
| 921 | } |
| 857 | 922 | } |
| 858 | 923 | |
| 859 | 924 | // clear out any cached files |
src/emu/validity.c
| r14584 | r14585 | |
| 60 | 60 | // TYPE DEFINITIONS |
| 61 | 61 | //************************************************************************** |
| 62 | 62 | |
| 63 | | extern const device_type *s_devices_sorted[]; |
| 64 | | extern int m_device_count; |
| 65 | | |
| 66 | | |
| 67 | | |
| 68 | 63 | //************************************************************************** |
| 69 | 64 | // INLINE FUNCTIONS |
| 70 | 65 | //************************************************************************** |
| r14584 | r14585 | |
| 302 | 297 | validate_display(); |
| 303 | 298 | validate_gfx(); |
| 304 | 299 | validate_devices(); |
| 305 | | validate_slots(); |
| 306 | 300 | } |
| 307 | 301 | catch (emu_fatalerror &err) |
| 308 | 302 | { |
| r14584 | r14585 | |
| 706 | 700 | if (items_since_region == 0) |
| 707 | 701 | mame_printf_warning("Empty ROM region '%s' (warning)\n", last_region_name); |
| 708 | 702 | |
| 709 | | // make sure each device is listed in the device list if it loads ROMs |
| 710 | | if (m_current_device != NULL && total_files > 0) |
| 711 | | { |
| 712 | | // scan the list of devices for this device type |
| 713 | | bool found = false; |
| 714 | | for (int i = 0; i < m_device_count; i++) |
| 715 | | if (m_current_device->type() == *s_devices_sorted[i]) |
| 716 | | { |
| 717 | | found = true; |
| 718 | | break; |
| 719 | | } |
| 720 | 703 | |
| 721 | | // if not found, report an error |
| 722 | | if (!found) |
| 723 | | mame_printf_error("Device %s is not listed in device list (mame_dev.lst / mess_dev.lst)\n", m_current_device->shortname()); |
| 724 | | } |
| 725 | | |
| 726 | 704 | // reset the current device |
| 727 | 705 | m_current_device = NULL; |
| 728 | 706 | } |
| r14584 | r14585 | |
| 1116 | 1094 | |
| 1117 | 1095 | // if we have a ROM region, we must have a shortname |
| 1118 | 1096 | if (device->rom_region() != NULL && strcmp(device->shortname(), "") == 0) |
| 1119 | | mame_printf_error("Device %s has ROM definition but does not have short name defined\n", device->name()); |
| 1097 | mame_printf_error("Device has ROM definition but does not have short name defined\n"); |
| 1120 | 1098 | |
| 1121 | 1099 | // check for device-specific validity check |
| 1122 | 1100 | device->validity_check(*this); |
| r14584 | r14585 | |
| 1124 | 1102 | // done with this device |
| 1125 | 1103 | m_current_device = NULL; |
| 1126 | 1104 | } |
| 1127 | | } |
| 1128 | | |
| 1129 | | |
| 1130 | | //------------------------------------------------- |
| 1131 | | // validate_slots - run per-slot validity |
| 1132 | | // checks |
| 1133 | | //------------------------------------------------- |
| 1134 | | |
| 1135 | | void validity_checker::validate_slots() |
| 1136 | | { |
| 1137 | | // iterate over slots |
| 1138 | | slot_interface_iterator iter(m_current_config->root_device()); |
| 1139 | | for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 1105 | |
| 1106 | // if device is slot cart device, we must have a shortname |
| 1107 | int_map slot_device_map; |
| 1108 | slot_interface_iterator slotiter(m_current_config->root_device()); |
| 1109 | for (const device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next()) |
| 1140 | 1110 | { |
| 1141 | | // iterate over interfaces |
| 1142 | | const slot_interface *intf = slot->get_slot_interfaces(); |
| 1143 | | for (int j = 0; intf && intf[j].name != NULL; j++) |
| 1111 | const slot_interface* intf = slot->get_slot_interfaces(); |
| 1112 | for (int i = 0; intf && intf[i].name != NULL; i++) |
| 1144 | 1113 | { |
| 1145 | | // instantiate the device |
| 1146 | | device_t *dev = (*intf[j].devtype)(*m_current_config, "dummy", &m_current_config->root_device(), 0); |
| 1147 | | dev->config_complete(); |
| 1114 | astring temptag("_"); |
| 1115 | temptag.cat(intf[i].name); |
| 1116 | device_t *dev = const_cast<machine_config &>(*m_current_config).device_add(&m_current_config->root_device(), temptag.cstr(), intf[i].devtype, 0); |
| 1148 | 1117 | |
| 1149 | | // if a ROM region is present |
| 1150 | | if (dev->rom_region() != NULL) |
| 1151 | | { |
| 1152 | | bool has_romfiles = false; |
| 1153 | | for (const rom_entry *romp = rom_first_region(*dev); !ROMENTRY_ISEND(romp); romp++) |
| 1154 | | if (ROMENTRY_ISFILE(romp)) |
| 1155 | | { |
| 1156 | | has_romfiles = true; |
| 1157 | | break; |
| 1158 | | } |
| 1118 | // notify this device and all its subdevices that they are now configured |
| 1119 | device_iterator subiter(*dev); |
| 1120 | for (device_t *device = subiter.first(); device != NULL; device = subiter.next()) |
| 1121 | if (!device->configured()) |
| 1122 | device->config_complete(); |
| 1159 | 1123 | |
| 1160 | | if (has_romfiles) |
| 1161 | | { |
| 1162 | | // scan the list of devices for this device type |
| 1163 | | bool found = false; |
| 1164 | | for (int i = 0; i < m_device_count; i++) |
| 1165 | | if (dev->type() == *s_devices_sorted[i]) |
| 1166 | | { |
| 1167 | | found = true; |
| 1168 | | break; |
| 1169 | | } |
| 1170 | | |
| 1171 | | // if not found, report an error |
| 1172 | | if (!found) |
| 1173 | | mame_printf_error("Device %s in slot %s is not listed in device list (mame_dev.lst / mess_dev.lst)\n", dev->shortname(), intf[j].name); |
| 1174 | | } |
| 1124 | if (strcmp(dev->shortname(), "") == 0) { |
| 1125 | if (slot_device_map.add(dev->name(), 0, false) != TMERR_DUPLICATE) |
| 1126 | mame_printf_error("Device '%s' is slot cart device but does not have short name defined\n",dev->name()); |
| 1175 | 1127 | } |
| 1128 | |
| 1129 | const_cast<machine_config &>(*m_current_config).device_remove(&m_current_config->root_device(), temptag.cstr()); |
| 1176 | 1130 | global_free(dev); |
| 1177 | 1131 | } |
| 1178 | 1132 | } |
| 1133 | |
| 1179 | 1134 | } |
| 1180 | 1135 | |
| 1181 | 1136 | |
src/emu/info.c
| r14584 | r14585 | |
| 180 | 180 | "\t\t\t<!ELEMENT slotoption EMPTY>\n" |
| 181 | 181 | "\t\t\t\t<!ATTLIST slotoption name CDATA #REQUIRED>\n" |
| 182 | 182 | "\t\t\t\t<!ATTLIST slotoption description CDATA #REQUIRED>\n" |
| 183 | "\t\t\t\t<!ATTLIST slotoption shortname CDATA #REQUIRED>\n" |
| 183 | 184 | "\t\t\t\t<!ATTLIST slotoption default (yes|no) \"no\">\n" |
| 184 | 185 | "\t\t<!ELEMENT softwarelist EMPTY>\n" |
| 185 | 186 | "\t\t\t<!ATTLIST softwarelist name CDATA #REQUIRED>\n" |
| r14584 | r14585 | |
| 187 | 188 | "\t\t\t<!ATTLIST softwarelist filter CDATA #IMPLIED>\n" |
| 188 | 189 | "\t\t<!ELEMENT ramoption (#PCDATA)>\n" |
| 189 | 190 | "\t\t\t<!ATTLIST ramoption default CDATA #IMPLIED>\n" |
| 190 | | "\t<!ELEMENT device (description, rom*, chip*, display*, sound?, input?, dipswitch*, configuration*, adjuster*, device*, slot*)>\n" |
| 191 | | "\t\t<!ATTLIST device name CDATA #IMPLIED>\n" |
| 192 | | "\t\t<!ELEMENT description (#PCDATA)>\n" |
| 193 | | "\t\t<!ELEMENT rom EMPTY>\n" |
| 194 | | "\t\t\t<!ATTLIST rom name CDATA #REQUIRED>\n" |
| 195 | | "\t\t\t<!ATTLIST rom bios CDATA #IMPLIED>\n" |
| 196 | | "\t\t\t<!ATTLIST rom size CDATA #REQUIRED>\n" |
| 197 | | "\t\t\t<!ATTLIST rom crc CDATA #IMPLIED>\n" |
| 198 | | "\t\t\t<!ATTLIST rom sha1 CDATA #IMPLIED>\n" |
| 199 | | "\t\t\t<!ATTLIST rom merge CDATA #IMPLIED>\n" |
| 200 | | "\t\t\t<!ATTLIST rom region CDATA #IMPLIED>\n" |
| 201 | | "\t\t\t<!ATTLIST rom offset CDATA #IMPLIED>\n" |
| 202 | | "\t\t\t<!ATTLIST rom status (baddump|nodump|good) \"good\">\n" |
| 203 | | "\t\t\t<!ATTLIST rom optional (yes|no) \"no\">\n" |
| 204 | | "\t\t<!ELEMENT chip EMPTY>\n" |
| 205 | | "\t\t\t<!ATTLIST chip name CDATA #REQUIRED>\n" |
| 206 | | "\t\t\t<!ATTLIST chip tag CDATA #IMPLIED>\n" |
| 207 | | "\t\t\t<!ATTLIST chip type (cpu|audio) #REQUIRED>\n" |
| 208 | | "\t\t\t<!ATTLIST chip clock CDATA #IMPLIED>\n" |
| 209 | | "\t\t<!ELEMENT display EMPTY>\n" |
| 210 | | "\t\t\t<!ATTLIST display type (raster|vector|lcd|unknown) #REQUIRED>\n" |
| 211 | | "\t\t\t<!ATTLIST display rotate (0|90|180|270) #REQUIRED>\n" |
| 212 | | "\t\t\t<!ATTLIST display flipx (yes|no) \"no\">\n" |
| 213 | | "\t\t\t<!ATTLIST display width CDATA #IMPLIED>\n" |
| 214 | | "\t\t\t<!ATTLIST display height CDATA #IMPLIED>\n" |
| 215 | | "\t\t\t<!ATTLIST display refresh CDATA #REQUIRED>\n" |
| 216 | | "\t\t\t<!ATTLIST display pixclock CDATA #IMPLIED>\n" |
| 217 | | "\t\t\t<!ATTLIST display htotal CDATA #IMPLIED>\n" |
| 218 | | "\t\t\t<!ATTLIST display hbend CDATA #IMPLIED>\n" |
| 219 | | "\t\t\t<!ATTLIST display hbstart CDATA #IMPLIED>\n" |
| 220 | | "\t\t\t<!ATTLIST display vtotal CDATA #IMPLIED>\n" |
| 221 | | "\t\t\t<!ATTLIST display vbend CDATA #IMPLIED>\n" |
| 222 | | "\t\t\t<!ATTLIST display vbstart CDATA #IMPLIED>\n" |
| 223 | | "\t\t<!ELEMENT sound EMPTY>\n" |
| 224 | | "\t\t\t<!ATTLIST sound channels CDATA #REQUIRED>\n" |
| 225 | | "\t\t<!ELEMENT input (control*)>\n" |
| 226 | | "\t\t\t<!ATTLIST input service (yes|no) \"no\">\n" |
| 227 | | "\t\t\t<!ATTLIST input tilt (yes|no) \"no\">\n" |
| 228 | | "\t\t\t<!ATTLIST input players CDATA #REQUIRED>\n" |
| 229 | | "\t\t\t<!ATTLIST input buttons CDATA #IMPLIED>\n" |
| 230 | | "\t\t\t<!ATTLIST input coins CDATA #IMPLIED>\n" |
| 231 | | "\t\t\t<!ELEMENT control EMPTY>\n" |
| 232 | | "\t\t\t\t<!ATTLIST control type CDATA #REQUIRED>\n" |
| 233 | | "\t\t\t\t<!ATTLIST control minimum CDATA #IMPLIED>\n" |
| 234 | | "\t\t\t\t<!ATTLIST control maximum CDATA #IMPLIED>\n" |
| 235 | | "\t\t\t\t<!ATTLIST control sensitivity CDATA #IMPLIED>\n" |
| 236 | | "\t\t\t\t<!ATTLIST control keydelta CDATA #IMPLIED>\n" |
| 237 | | "\t\t\t\t<!ATTLIST control reverse (yes|no) \"no\">\n" |
| 238 | | "\t\t\t\t<!ATTLIST control ways CDATA #IMPLIED>\n" |
| 239 | | "\t\t\t\t<!ATTLIST control ways2 CDATA #IMPLIED>\n" |
| 240 | | "\t\t\t\t<!ATTLIST control ways3 CDATA #IMPLIED>\n" |
| 241 | | "\t\t<!ELEMENT dipswitch (dipvalue*)>\n" |
| 242 | | "\t\t\t<!ATTLIST dipswitch name CDATA #REQUIRED>\n" |
| 243 | | "\t\t\t<!ATTLIST dipswitch tag CDATA #REQUIRED>\n" |
| 244 | | "\t\t\t<!ATTLIST dipswitch mask CDATA #REQUIRED>\n" |
| 245 | | "\t\t\t<!ELEMENT dipvalue EMPTY>\n" |
| 246 | | "\t\t\t\t<!ATTLIST dipvalue name CDATA #REQUIRED>\n" |
| 247 | | "\t\t\t\t<!ATTLIST dipvalue value CDATA #REQUIRED>\n" |
| 248 | | "\t\t\t\t<!ATTLIST dipvalue default (yes|no) \"no\">\n" |
| 249 | | "\t\t<!ELEMENT configuration (confsetting*)>\n" |
| 250 | | "\t\t\t<!ATTLIST configuration name CDATA #REQUIRED>\n" |
| 251 | | "\t\t\t<!ATTLIST configuration tag CDATA #REQUIRED>\n" |
| 252 | | "\t\t\t<!ATTLIST configuration mask CDATA #REQUIRED>\n" |
| 253 | | "\t\t\t<!ELEMENT confsetting EMPTY>\n" |
| 254 | | "\t\t\t\t<!ATTLIST confsetting name CDATA #REQUIRED>\n" |
| 255 | | "\t\t\t\t<!ATTLIST confsetting value CDATA #REQUIRED>\n" |
| 256 | | "\t\t\t\t<!ATTLIST confsetting default (yes|no) \"no\">\n" |
| 257 | | "\t\t<!ELEMENT adjuster EMPTY>\n" |
| 258 | | "\t\t\t<!ATTLIST adjuster name CDATA #REQUIRED>\n" |
| 259 | | "\t\t\t<!ATTLIST adjuster default CDATA #REQUIRED>\n" |
| 260 | | "\t\t<!ELEMENT device (instance*, extension*)>\n" |
| 261 | | "\t\t\t<!ATTLIST device type CDATA #REQUIRED>\n" |
| 262 | | "\t\t\t<!ATTLIST device tag CDATA #IMPLIED>\n" |
| 263 | | "\t\t\t<!ATTLIST device mandatory CDATA #IMPLIED>\n" |
| 264 | | "\t\t\t<!ATTLIST device interface CDATA #IMPLIED>\n" |
| 265 | | "\t\t\t<!ELEMENT instance EMPTY>\n" |
| 266 | | "\t\t\t\t<!ATTLIST instance name CDATA #REQUIRED>\n" |
| 267 | | "\t\t\t\t<!ATTLIST instance briefname CDATA #REQUIRED>\n" |
| 268 | | "\t\t\t<!ELEMENT extension EMPTY>\n" |
| 269 | | "\t\t\t\t<!ATTLIST extension name CDATA #REQUIRED>\n" |
| 270 | | "\t\t<!ELEMENT slot (slotoption*)>\n" |
| 271 | | "\t\t\t<!ATTLIST slot name CDATA #REQUIRED>\n" |
| 272 | | "\t\t\t<!ELEMENT slotoption EMPTY>\n" |
| 273 | | "\t\t\t\t<!ATTLIST slotoption name CDATA #REQUIRED>\n" |
| 274 | | "\t\t\t\t<!ATTLIST slotoption description CDATA #REQUIRED>\n" |
| 275 | | "\t\t\t\t<!ATTLIST slotoption default (yes|no) \"no\">\n" |
| 276 | 191 | "]>"; |
| 277 | 192 | |
| 278 | 193 | |
| r14584 | r14585 | |
| 498 | 413 | slot_map desc; |
| 499 | 414 | const game_driver &driver = m_drivlist.driver(); |
| 500 | 415 | |
| 501 | | bool display_all = (driver_list::total() == m_drivlist.count() + 1); |
| 502 | 416 | // first, run through slot devices |
| 503 | 417 | while (m_drivlist.next()) |
| 504 | 418 | { |
| 505 | 419 | device_iterator deviter(m_drivlist.config().root_device()); |
| 506 | 420 | deviter.first(); |
| 507 | | for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) |
| 421 | for (device_t *device = deviter.next(); device != NULL; device = deviter.next()) { |
| 508 | 422 | if (device->rom_region() != NULL && device->shortname()!= NULL) |
| 509 | 423 | { |
| 510 | 424 | if (desc.add(device->name(), &driver, FALSE) != TMERR_DUPLICATE) |
| 511 | 425 | output_one_device(*device, device->tag(), emulator_info::get_xml_top()); |
| 512 | 426 | } |
| 513 | | |
| 514 | | if (display_all) |
| 427 | } |
| 428 | slot_interface_iterator iter(m_drivlist.config().root_device()); |
| 429 | for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 515 | 430 | { |
| 516 | | slot_interface_iterator iter(m_drivlist.config().root_device()); |
| 517 | | for (const device_slot_interface *slot = iter.first(); slot != NULL; slot = iter.next()) |
| 431 | const slot_interface* intf = slot->get_slot_interfaces(); |
| 432 | for (int i = 0; intf && intf[i].name != NULL; i++) |
| 518 | 433 | { |
| 519 | | const slot_interface* intf = slot->get_slot_interfaces(); |
| 520 | | for (int i = 0; intf && intf[i].name != NULL; i++) |
| 521 | | { |
| 522 | | astring temptag("_"); |
| 523 | | temptag.cat(intf[i].name); |
| 524 | | device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), temptag.cstr(), intf[i].devtype, 0); |
| 434 | astring temptag("_"); |
| 435 | temptag.cat(intf[i].name); |
| 436 | device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), temptag.cstr(), intf[i].devtype, 0); |
| 525 | 437 | |
| 526 | | // notify this device and all its subdevices that they are now configured |
| 527 | | device_iterator subiter(*dev); |
| 528 | | for (device_t *device = subiter.first(); device != NULL; device = subiter.next()) |
| 529 | | if (!device->configured()) |
| 530 | | device->config_complete(); |
| 438 | // notify this device and all its subdevices that they are now configured |
| 439 | device_iterator subiter(*dev); |
| 440 | for (device_t *device = subiter.first(); device != NULL; device = subiter.next()) |
| 441 | if (!device->configured()) |
| 442 | device->config_complete(); |
| 531 | 443 | |
| 532 | | if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE) |
| 533 | | output_one_device(*dev, temptag.cstr(), "device"); |
| 444 | if (desc.add(dev->name(), &driver, FALSE) != TMERR_DUPLICATE) |
| 445 | output_one_device(*dev, temptag.cstr(), emulator_info::get_xml_top()); |
| 534 | 446 | |
| 535 | | const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr()); |
| 536 | | global_free(dev); |
| 537 | | } |
| 447 | const_cast<machine_config &>(m_drivlist.config()).device_remove(&m_drivlist.config().root_device(), temptag.cstr()); |
| 448 | global_free(dev); |
| 538 | 449 | } |
| 539 | 450 | } |
| 540 | 451 | } |
| r14584 | r14585 | |
| 1372 | 1283 | for (int i = 0; intf && intf[i].name != NULL; i++) |
| 1373 | 1284 | { |
| 1374 | 1285 | device_t *dev = const_cast<machine_config &>(m_drivlist.config()).device_add(&m_drivlist.config().root_device(), "dummy", intf[i].devtype, 0); |
| 1286 | if (!dev->configured()) |
| 1287 | dev->config_complete(); |
| 1288 | |
| 1375 | 1289 | fprintf(m_output, "\t\t\t<slotoption"); |
| 1376 | 1290 | fprintf(m_output, " name=\"%s\"", xml_normalize_string(intf[i].name)); |
| 1377 | 1291 | fprintf(m_output, " description=\"%s\"", xml_normalize_string(dev->name())); |
| 1292 | fprintf(m_output, " shortname=\"%s\"", xml_normalize_string(dev->shortname())); |
| 1378 | 1293 | if (slot->get_default_card(m_drivlist.config(), m_drivlist.options())) |
| 1379 | 1294 | { |
| 1380 | 1295 | if (slot->get_default_card(m_drivlist.config(), m_drivlist.options()) == intf[i].name) |
src/mess/tiny_dev.lst
| r14584 | r14585 | |
| 1 | | /****************************************************************************** |
| 2 | | |
| 3 | | tiny_dev.lst |
| 4 | | |
| 5 | | List of all enabled devices in the system. This file is parsed by |
| 6 | | makedev.exe, sorted, and output as C code describing the devices. |
| 7 | | |
| 8 | | **************************************************************************** |
| 9 | | |
| 10 | | Copyright Aaron Giles |
| 11 | | All rights reserved. |
| 12 | | |
| 13 | | Redistribution and use in source and binary forms, with or without |
| 14 | | modification, are permitted provided that the following conditions are |
| 15 | | met: |
| 16 | | |
| 17 | | * Redistributions of source code must retain the above copyright |
| 18 | | notice, this list of conditions and the following disclaimer. |
| 19 | | * Redistributions in binary form must reproduce the above copyright |
| 20 | | notice, this list of conditions and the following disclaimer in |
| 21 | | the documentation and/or other materials provided with the |
| 22 | | distribution. |
| 23 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 24 | | used to endorse or promote products derived from this software |
| 25 | | without specific prior written permission. |
| 26 | | |
| 27 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 28 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | | POSSIBILITY OF SUCH DAMAGE. |
| 38 | | |
| 39 | | ******************************************************************************/ |
src/mess/mess_dev.lst
| r14584 | r14585 | |
| 1 | | /****************************************************************************** |
| 2 | | |
| 3 | | mess_dev.lst |
| 4 | | |
| 5 | | List of all enabled devices in the system. This file is parsed by |
| 6 | | makedev.exe, sorted, and output as C code describing the devices. |
| 7 | | |
| 8 | | **************************************************************************** |
| 9 | | |
| 10 | | Copyright Aaron Giles |
| 11 | | All rights reserved. |
| 12 | | |
| 13 | | Redistribution and use in source and binary forms, with or without |
| 14 | | modification, are permitted provided that the following conditions are |
| 15 | | met: |
| 16 | | |
| 17 | | * Redistributions of source code must retain the above copyright |
| 18 | | notice, this list of conditions and the following disclaimer. |
| 19 | | * Redistributions in binary form must reproduce the above copyright |
| 20 | | notice, this list of conditions and the following disclaimer in |
| 21 | | the documentation and/or other materials provided with the |
| 22 | | distribution. |
| 23 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 24 | | used to endorse or promote products derived from this software |
| 25 | | without specific prior written permission. |
| 26 | | |
| 27 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 28 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | | POSSIBILITY OF SUCH DAMAGE. |
| 38 | | |
| 39 | | ******************************************************************************/ |
| 40 | | |
| 41 | | ABC77 |
| 42 | | ABC99 |
| 43 | | AT_KEYBOARD_CONTROLLER |
| 44 | | BETA_DISK |
| 45 | | C1540 |
| 46 | | C1541 |
| 47 | | C1541C |
| 48 | | C1541II |
| 49 | | SX1541 |
| 50 | | OC118 |
| 51 | | C1551 |
| 52 | | C1570 |
| 53 | | C1571 |
| 54 | | C1571CR |
| 55 | | C1563 |
| 56 | | C1581 |
| 57 | | C2040 |
| 58 | | C3040 |
| 59 | | C4040 |
| 60 | | C8050 |
| 61 | | C8250 |
| 62 | | C8250LP |
| 63 | | C8280 |
| 64 | | D9060 |
| 65 | | D9090 |
| 66 | | SFD1001 |
| 67 | | C2031 |
| 68 | | MINI_CHIEF |
| 69 | | SOFTBOX |
| 70 | | SERIAL_BOX |
| 71 | | COCO_FDC |
| 72 | | COCO_FDC_V11 |
| 73 | | CP400_FDC |
| 74 | | DRAGON_FDC |
| 75 | | SDTANDY_FDC |
| 76 | | COMX_CLM |
| 77 | | COMX_EB |
| 78 | | COMX_FD |
| 79 | | COMX_EPR |
| 80 | | COMX_THM |
| 81 | | COMX_PRN |
| 82 | | COMXPL80 |
| 83 | | S100_DJ2DB |
| 84 | | S100_DJDMA |
| 85 | | S100_MM65K16S |
| 86 | | EGRET |
| 87 | | CUDA |
| 88 | | MACKBD |
| 89 | | ECB_GRIP21 |
| 90 | | HD61830 |
| 91 | | INTERPOD |
| 92 | | ISA8_CGA |
| 93 | | ISA8_CGA_MC1502 |
| 94 | | ISA8_HDC |
| 95 | | ISA8_MDA |
| 96 | | ISA8_EGA |
| 97 | | ISA8_SVGA_ET4K |
| 98 | | ISA8_SVGA_S3 |
| 99 | | ISA8_SVGA_CIRRUS |
| 100 | | ISA8_HERCULES |
| 101 | | ISA8_FINALCHS |
| 102 | | ISA8_IBM_MFC |
| 103 | | AHA1542 |
| 104 | | IBM_VGA |
| 105 | | IQ151_DISC2 |
| 106 | | IQ151_MS151A |
| 107 | | IQ151_MINIGRAF |
| 108 | | IQ151_VIDEO32 |
| 109 | | IQ151_VIDEO64 |
| 110 | | KB_KEYTRONIC |
| 111 | | LUXOR_55_10828 |
| 112 | | LUXOR_55_21046 |
| 113 | | NUBUS_48GC |
| 114 | | NUBUS_824GC |
| 115 | | NUBUS_CB264 |
| 116 | | NUBUS_VIKBW |
| 117 | | NUBUS_SPECPDQ |
| 118 | | NUBUS_M2HIRES |
| 119 | | NUBUS_SPEC8S3 |
| 120 | | NUBUS_ASNTMC3NB |
| 121 | | NUBUS_RADIUSTPD |
| 122 | | NUBUS_WSPORTRAIT |
| 123 | | NUBUS_APPLEENET |
| 124 | | PC1512_KEYBOARD |
| 125 | | S1410 |
| 126 | | SED1330 |
| 127 | | TF20 |
| 128 | | UPD7220 |
| 129 | | ABC_FD2 |
| 130 | | ABC_UNI800 |
| 131 | | ABC_SIO |
| 132 | | ABC_SLUTPROV |
| 133 | | CPC_SSA1 // uses internal SP0256 ROM |
| 134 | | CPC_DKSPEECH // uses internal SP0256 ROM |
| 135 | | CPC_MFACE2 |
| 136 | | C64_XL80 |
| 137 | | KC_D004 |
| 138 | | WDXT_GEN |
| 139 | | APRICOT_KEYBOARD |
| 140 | | V1050_KEYBOARD |
| 141 | | VICTOR9K_KEYBOARD |
| 142 | | TANDY2K_KEYBOARD |
| 143 | | WANGPC_KEYBOARD |
| 144 | | TI99_FDC |
| 145 | | TI99_BWG |
| 146 | | TI99_HFDC |
| 147 | | TI99_P_CODE |
| 148 | | TI99_MYARCMEM |
| 149 | | TI99_EVPC |
| 150 | | TI99_RS232 |
| 151 | | TI99_SPEECH |
| 152 | | TI99_SPEECH8 |
src/ldplayer/ldplayer_dev.lst
| r14584 | r14585 | |
| 1 | | /****************************************************************************** |
| 2 | | |
| 3 | | ldplayer_dev.lst |
| 4 | | |
| 5 | | List of all enabled devices in the system. This file is parsed by |
| 6 | | makedev.exe, sorted, and output as C code describing the devices. |
| 7 | | |
| 8 | | **************************************************************************** |
| 9 | | |
| 10 | | Copyright Aaron Giles |
| 11 | | All rights reserved. |
| 12 | | |
| 13 | | Redistribution and use in source and binary forms, with or without |
| 14 | | modification, are permitted provided that the following conditions are |
| 15 | | met: |
| 16 | | |
| 17 | | * Redistributions of source code must retain the above copyright |
| 18 | | notice, this list of conditions and the following disclaimer. |
| 19 | | * Redistributions in binary form must reproduce the above copyright |
| 20 | | notice, this list of conditions and the following disclaimer in |
| 21 | | the documentation and/or other materials provided with the |
| 22 | | distribution. |
| 23 | | * Neither the name 'MAME' nor the names of its contributors may be |
| 24 | | used to endorse or promote products derived from this software |
| 25 | | without specific prior written permission. |
| 26 | | |
| 27 | | THIS SOFTWARE IS PROVIDED BY AARON GILES ''AS IS'' AND ANY EXPRESS OR |
| 28 | | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 29 | | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 30 | | DISCLAIMED. IN NO EVENT SHALL AARON GILES BE LIABLE FOR ANY DIRECT, |
| 31 | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 32 | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 33 | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 34 | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 35 | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING |
| 36 | | IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 37 | | POSSIBILITY OF SUCH DAMAGE. |
| 38 | | |
| 39 | | ******************************************************************************/ |
| 40 | | |
| 41 | | PIONEER_LDV1000 |
| 42 | | PIONEER_PR8210 |
| | No newline at end of file |