trunk/src/emu/clifront.cpp
| r253558 | r253559 | |
| 238 | 238 | |
| 239 | 239 | // print them out |
| 240 | 240 | osd_printf_error("\n\"%s\" approximately matches the following\n" |
| 241 | | "supported %s (best match first):\n\n", m_options.system_name(),emulator_info::get_gamesnoun()); |
| 241 | "supported machines (best match first):\n\n", m_options.system_name()); |
| 242 | 242 | for (auto & matche : matches) |
| 243 | 243 | if (matche != -1) |
| 244 | 244 | osd_printf_error("%-18s%s\n", drivlist.driver(matche).name, drivlist.driver(matche).description); |
| r253558 | r253559 | |
| 1591 | 1591 | // showusage? |
| 1592 | 1592 | if (strcmp(m_options.command(), CLICOMMAND_SHOWUSAGE) == 0) |
| 1593 | 1593 | { |
| 1594 | | emulator_info::printf_usage(exename, emulator_info::get_gamenoun()); |
| 1594 | osd_printf_info("Usage: %s [machine] [media] [software] [options]",exename); |
| 1595 | 1595 | osd_printf_info("\n\nOptions:\n%s", m_options.output_help().c_str()); |
| 1596 | 1596 | return; |
| 1597 | 1597 | } |
| r253558 | r253559 | |
| 1693 | 1693 | void cli_frontend::display_help() |
| 1694 | 1694 | { |
| 1695 | 1695 | osd_printf_info("%s v%s\n%s\n\n", emulator_info::get_appname(),build_version,emulator_info::get_copyright_info()); |
| 1696 | | osd_printf_info("%s\n", emulator_info::get_disclaimer()); |
| 1697 | | emulator_info::printf_usage(emulator_info::get_appname(),emulator_info::get_gamenoun()); |
| 1696 | osd_printf_info("This software reproduces, more or less faithfully, the behaviour of a wide range\n" |
| 1697 | "of machines. But hardware is useless without software, so images of the ROMs and\n" |
| 1698 | "other media which run on that hardware are also required.\n\n"); |
| 1699 | osd_printf_info("Usage: %s [machine] [media] [software] [options]",emulator_info::get_appname()); |
| 1698 | 1700 | osd_printf_info("\n\n" |
| 1699 | 1701 | " %s -showusage for a brief list of options\n" |
| 1700 | 1702 | " %s -showconfig for a list of configuration options\n" |
trunk/src/emu/info.cpp
| r253558 | r253559 | |
| 19 | 19 | |
| 20 | 20 | #include <ctype.h> |
| 21 | 21 | |
| 22 | #define XML_ROOT "mame" |
| 23 | #define XML_TOP "machine" |
| 24 | |
| 22 | 25 | //************************************************************************** |
| 23 | 26 | // GLOBAL VARIABLES |
| 24 | 27 | //************************************************************************** |
| r253558 | r253559 | |
| 195 | 198 | // output the DTD |
| 196 | 199 | fprintf(m_output, "<?xml version=\"1.0\"?>\n"); |
| 197 | 200 | std::string dtd(s_dtd_string); |
| 198 | | strreplace(dtd, "__XML_ROOT__", emulator_info::get_xml_root()); |
| 199 | | strreplace(dtd, "__XML_TOP__", emulator_info::get_xml_top()); |
| 201 | strreplace(dtd, "__XML_ROOT__", XML_ROOT); |
| 202 | strreplace(dtd, "__XML_TOP__", XML_TOP); |
| 200 | 203 | |
| 201 | 204 | fprintf(m_output, "%s\n\n", dtd.c_str()); |
| 202 | 205 | |
| r253558 | r253559 | |
| 208 | 211 | "no" |
| 209 | 212 | #endif |
| 210 | 213 | "\" mameconfig=\"%d\">\n", |
| 211 | | emulator_info::get_xml_root(), |
| 214 | XML_ROOT, |
| 212 | 215 | xml_normalize_string(build_version), |
| 213 | 216 | CONFIG_VERSION |
| 214 | 217 | ); |
| r253558 | r253559 | |
| 222 | 225 | output_devices(); |
| 223 | 226 | |
| 224 | 227 | // close the top level tag |
| 225 | | fprintf(m_output, "</%s>\n",emulator_info::get_xml_root()); |
| 228 | fprintf(m_output, "</%s>\n",XML_ROOT); |
| 226 | 229 | } |
| 227 | 230 | |
| 228 | 231 | |
| r253558 | r253559 | |
| 247 | 250 | portlist.append(*device, errors); |
| 248 | 251 | |
| 249 | 252 | // print the header and the game name |
| 250 | | fprintf(m_output, "\t<%s",emulator_info::get_xml_top()); |
| 253 | fprintf(m_output, "\t<%s",XML_TOP); |
| 251 | 254 | fprintf(m_output, " name=\"%s\"", xml_normalize_string(driver.name)); |
| 252 | 255 | |
| 253 | 256 | // strip away any path information from the source_file and output it |
| r253558 | r253559 | |
| 309 | 312 | output_ramoptions(); |
| 310 | 313 | |
| 311 | 314 | // close the topmost tag |
| 312 | | fprintf(m_output, "\t</%s>\n",emulator_info::get_xml_top()); |
| 315 | fprintf(m_output, "\t</%s>\n",XML_TOP); |
| 313 | 316 | } |
| 314 | 317 | |
| 315 | 318 | |
| r253558 | r253559 | |
| 341 | 344 | } |
| 342 | 345 | |
| 343 | 346 | // start to output info |
| 344 | | fprintf(m_output, "\t<%s", emulator_info::get_xml_top()); |
| 347 | fprintf(m_output, "\t<%s", XML_TOP); |
| 345 | 348 | fprintf(m_output, " name=\"%s\"", xml_normalize_string(device.shortname())); |
| 346 | 349 | std::string src(device.source()); |
| 347 | 350 | strreplace(src,"../", ""); |
| r253558 | r253559 | |
| 368 | 371 | output_adjusters(portlist); |
| 369 | 372 | output_images(device, devtag); |
| 370 | 373 | output_slots(device, devtag); |
| 371 | | fprintf(m_output, "\t</%s>\n", emulator_info::get_xml_top()); |
| 374 | fprintf(m_output, "\t</%s>\n", XML_TOP); |
| 372 | 375 | } |
| 373 | 376 | |
| 374 | 377 | |
trunk/src/emu/romload.cpp
| r253558 | r253559 | |
| 464 | 464 | char buffer[200]; |
| 465 | 465 | |
| 466 | 466 | if (name != nullptr) |
| 467 | | sprintf(buffer, "Loading %s (%d%%)", from_list ? "Software" : emulator_info::get_capstartgamenoun(), (UINT32)(100 * (UINT64)m_romsloadedsize / (UINT64)m_romstotalsize)); |
| 467 | sprintf(buffer, "%s (%d%%)", from_list ? "Loading Software" : "Loading Machine", (UINT32)(100 * (UINT64)m_romsloadedsize / (UINT64)m_romstotalsize)); |
| 468 | 468 | else |
| 469 | 469 | sprintf(buffer, "Loading Complete"); |
| 470 | 470 | |
| r253558 | r253559 | |
| 488 | 488 | { |
| 489 | 489 | /* create the error message and exit fatally */ |
| 490 | 490 | osd_printf_error("%s", m_errorstring.c_str()); |
| 491 | | fatalerror_exitcode(machine(), MAMERR_MISSING_FILES, "Required files are missing, the %s cannot be run.",emulator_info::get_gamenoun()); |
| 491 | fatalerror_exitcode(machine(), MAMERR_MISSING_FILES, "Required files are missing, the machine cannot be run."); |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | 494 | /* if we had warnings, output them, but continue */ |
| 495 | 495 | if ((m_warnings) || (m_knownbad)) |
| 496 | 496 | { |
| 497 | | m_errorstring.append("WARNING: the "); |
| 498 | | m_errorstring.append(emulator_info::get_gamenoun()); |
| 499 | | m_errorstring.append(" might not run correctly."); |
| 497 | m_errorstring.append("WARNING: the machine might not run correctly."); |
| 500 | 498 | osd_printf_warning("%s\n", m_errorstring.c_str()); |
| 501 | 499 | } |
| 502 | 500 | } |
trunk/src/emu/save.cpp
| r253558 | r253559 | |
| 49 | 49 | SS_MSB_FIRST = 0x02 |
| 50 | 50 | }; |
| 51 | 51 | |
| 52 | #define STATE_MAGIC_NUM "MAMESAVE" |
| 52 | 53 | |
| 53 | 54 | //************************************************************************** |
| 54 | 55 | // INITIALIZATION |
| r253558 | r253559 | |
| 292 | 293 | |
| 293 | 294 | // generate the header |
| 294 | 295 | UINT8 header[HEADER_SIZE]; |
| 295 | | memcpy(&header[0], emulator_info::get_state_magic_num(), 8); |
| 296 | memcpy(&header[0], STATE_MAGIC_NUM, 8); |
| 296 | 297 | header[8] = SAVE_VERSION; |
| 297 | 298 | header[9] = NATIVE_ENDIAN_VALUE_LE_BE(0, SS_MSB_FIRST); |
| 298 | 299 | strncpy((char *)&header[0x0a], machine().system().name, 0x1c - 0x0a); |
| r253558 | r253559 | |
| 365 | 366 | void (CLIB_DECL *errormsg)(const char *fmt, ...), const char *error_prefix) |
| 366 | 367 | { |
| 367 | 368 | // check magic number |
| 368 | | if (memcmp(header, emulator_info::get_state_magic_num(), 8)) |
| 369 | if (memcmp(header, STATE_MAGIC_NUM, 8)) |
| 369 | 370 | { |
| 370 | 371 | if (errormsg != nullptr) |
| 371 | 372 | (*errormsg)("%sThis is not a %s save file", error_prefix,emulator_info::get_appname()); |
trunk/src/emu/ui/mainmenu.cpp
| r253558 | r253559 | |
| 49 | 49 | |
| 50 | 50 | void ui_menu_main::populate() |
| 51 | 51 | { |
| 52 | | std::string menu_text; |
| 53 | | |
| 54 | 52 | /* add input menu items */ |
| 55 | 53 | item_append(_("Input (general)"), nullptr, 0, (void *)INPUT_GROUPS); |
| 56 | 54 | |
| 57 | | strprintf(menu_text, _("Input (this %s)"), emulator_info::get_capstartgamenoun()); |
| 58 | | item_append(menu_text.c_str(), nullptr, 0, (void *)INPUT_SPECIFIC); |
| 55 | item_append(_("Input (this Machine)"), nullptr, 0, (void *)INPUT_SPECIFIC); |
| 59 | 56 | |
| 60 | 57 | /* add optional input-related menus */ |
| 61 | 58 | if (machine().ioport().has_analog()) |
| r253558 | r253559 | |
| 64 | 61 | item_append(_("Dip Switches"), nullptr, 0, (void *)SETTINGS_DIP_SWITCHES); |
| 65 | 62 | if (machine().ioport().has_configs()) |
| 66 | 63 | { |
| 67 | | strprintf(menu_text, _("%s Configuration"), emulator_info::get_capstartgamenoun()); |
| 68 | | item_append(menu_text.c_str(), nullptr, 0, (void *)SETTINGS_DRIVER_CONFIG); |
| 64 | item_append(_("Machine Configuration"), nullptr, 0, (void *)SETTINGS_DRIVER_CONFIG); |
| 69 | 65 | } |
| 70 | 66 | |
| 71 | 67 | /* add bookkeeping menu */ |
| 72 | 68 | item_append(_("Bookkeeping Info"), nullptr, 0, (void *)BOOKKEEPING); |
| 73 | 69 | |
| 74 | 70 | /* add game info menu */ |
| 75 | | strprintf(menu_text, _("%s Information"), emulator_info::get_capstartgamenoun()); |
| 76 | | item_append(menu_text.c_str(), nullptr, 0, (void *)GAME_INFO); |
| 71 | item_append(_("Machine Information"), nullptr, 0, (void *)GAME_INFO); |
| 77 | 72 | |
| 78 | 73 | image_interface_iterator imgiter(machine().root_device()); |
| 79 | 74 | if (imgiter.first() != nullptr) |
| r253558 | r253559 | |
| 150 | 145 | |
| 151 | 146 | item_append(MENU_SEPARATOR_ITEM, nullptr, 0, nullptr); |
| 152 | 147 | |
| 153 | | // menu_text.assign(_("Quit from ")).append(emulator_info::get_capstartgamenoun()); |
| 154 | | // item_append(menu_text.c_str(), nullptr, 0, (void *)QUIT_GAME); |
| 148 | // item_append(_("Quit from Machine"), nullptr, 0, (void *)QUIT_GAME); |
| 155 | 149 | |
| 156 | 150 | /* add reset and exit menus */ |
| 157 | | strprintf(menu_text, _("Select New %s"), emulator_info::get_capstartgamenoun()); |
| 158 | | item_append(menu_text.c_str(), nullptr, 0, (void *)SELECT_GAME); |
| 151 | item_append(_("Select New Machine"), nullptr, 0, (void *)SELECT_GAME); |
| 159 | 152 | } |
| 160 | 153 | |
| 161 | 154 | ui_menu_main::~ui_menu_main() |
trunk/src/emu/ui/ui.cpp
| r253558 | r253559 | |
| 1096 | 1096 | // add a warning if any ROMs were loaded with warnings |
| 1097 | 1097 | if (machine().rom_load().warnings() > 0) |
| 1098 | 1098 | { |
| 1099 | | str.append("One or more ROMs/CHDs for this "); |
| 1100 | | str.append(emulator_info::get_gamenoun()); |
| 1101 | | str.append(" are incorrect. The "); |
| 1102 | | str.append(emulator_info::get_gamenoun()); |
| 1103 | | str.append(" may not run correctly.\n"); |
| 1099 | str.append("One or more ROMs/CHDs for this machine are incorrect. The machine may not run correctly.\n"); |
| 1104 | 1100 | if (machine().system().flags & WARNING_FLAGS) |
| 1105 | 1101 | str.append("\n"); |
| 1106 | 1102 | } |
| r253558 | r253559 | |
| 1113 | 1109 | // if we have at least one warning flag, print the general header |
| 1114 | 1110 | if ((machine().system().flags & WARNING_FLAGS) || machine().rom_load().knownbad() > 0) |
| 1115 | 1111 | { |
| 1116 | | str.append("There are known problems with this "); |
| 1117 | | str.append(emulator_info::get_gamenoun()); |
| 1118 | | str.append("\n\n"); |
| 1112 | str.append("There are known problems with this machine\n\n"); |
| 1119 | 1113 | |
| 1120 | 1114 | // add a warning if any ROMs are flagged BAD_DUMP/NO_DUMP |
| 1121 | 1115 | if (machine().rom_load().knownbad() > 0) { |
| 1122 | | str.append("One or more ROMs/CHDs for this "); |
| 1123 | | str.append(emulator_info::get_gamenoun()); |
| 1124 | | str.append(" have not been correctly dumped.\n"); |
| 1116 | str.append("One or more ROMs/CHDs for this machine have not been correctly dumped.\n"); |
| 1125 | 1117 | } |
| 1126 | 1118 | // add one line per warning flag |
| 1127 | 1119 | if (machine().system().flags & MACHINE_IMPERFECT_KEYBOARD) |
| r253558 | r253559 | |
| 1135 | 1127 | if (machine().system().flags & MACHINE_IMPERFECT_SOUND) |
| 1136 | 1128 | str.append("The sound emulation isn't 100% accurate.\n"); |
| 1137 | 1129 | if (machine().system().flags & MACHINE_NO_SOUND) { |
| 1138 | | str.append("The "); |
| 1139 | | str.append(emulator_info::get_gamenoun()); |
| 1140 | | str.append(" lacks sound.\n"); |
| 1130 | str.append("The machine lacks sound.\n"); |
| 1141 | 1131 | } |
| 1142 | 1132 | if (machine().system().flags & MACHINE_NO_COCKTAIL) |
| 1143 | 1133 | str.append("Screen flipping in cocktail mode is not supported.\n"); |
| 1144 | 1134 | |
| 1145 | 1135 | // check if external artwork is present before displaying this warning? |
| 1146 | 1136 | if (machine().system().flags & MACHINE_REQUIRES_ARTWORK) { |
| 1147 | | str.append("The "); |
| 1148 | | str.append(emulator_info::get_gamenoun()); |
| 1149 | | str.append(" requires external artwork files\n"); |
| 1137 | str.append("The machine requires external artwork files\n"); |
| 1150 | 1138 | } |
| 1151 | 1139 | |
| 1152 | 1140 | if (machine().system().flags & MACHINE_IS_INCOMPLETE ) |
| 1153 | 1141 | { |
| 1154 | | str.append("This "); |
| 1155 | | str.append(emulator_info::get_gamenoun()); |
| 1156 | | str.append(" was never completed. It may exhibit strange behavior or missing elements that are not bugs in the emulation.\n"); |
| 1142 | str.append("This machine was never completed. It may exhibit strange behavior or missing elements that are not bugs in the emulation.\n"); |
| 1157 | 1143 | } |
| 1158 | 1144 | |
| 1159 | 1145 | if (machine().system().flags & MACHINE_NO_SOUND_HW ) |
| 1160 | 1146 | { |
| 1161 | | str.append("This "); |
| 1162 | | str.append(emulator_info::get_gamenoun()); |
| 1163 | | str.append(" has no sound hardware, MAME will produce no sounds, this is expected behaviour.\n"); |
| 1147 | str.append("This machine has no sound hardware, MAME will produce no sounds, this is expected behaviour.\n"); |
| 1164 | 1148 | } |
| 1165 | 1149 | |
| 1166 | 1150 | // if there's a NOT WORKING, UNEMULATED PROTECTION or GAME MECHANICAL warning, make it stronger |
| r253558 | r253559 | |
| 1168 | 1152 | { |
| 1169 | 1153 | // add the strings for these warnings |
| 1170 | 1154 | if (machine().system().flags & MACHINE_UNEMULATED_PROTECTION) { |
| 1171 | | str.append("The "); |
| 1172 | | str.append(emulator_info::get_gamenoun()); |
| 1173 | | str.append(" has protection which isn't fully emulated.\n"); |
| 1155 | str.append("The machine has protection which isn't fully emulated.\n"); |
| 1174 | 1156 | } |
| 1175 | 1157 | if (machine().system().flags & MACHINE_NOT_WORKING) { |
| 1176 | | str.append("\nTHIS "); |
| 1177 | | str.append(emulator_info::get_capgamenoun()); |
| 1178 | | str.append(" DOESN'T WORK. The emulation for this "); |
| 1179 | | str.append(emulator_info::get_gamenoun()); |
| 1180 | | str.append(" is not yet complete. " |
| 1158 | str.append("\nTHIS MACHINE DOESN'T WORK. The emulation for this machine is not yet complete. " |
| 1181 | 1159 | "There is nothing you can do to fix this problem except wait for the developers to improve the emulation.\n"); |
| 1182 | 1160 | } |
| 1183 | 1161 | if (machine().system().flags & MACHINE_MECHANICAL) { |
| 1184 | | str.append("\nCertain elements of this "); |
| 1185 | | str.append(emulator_info::get_gamenoun()); |
| 1186 | | str.append(" cannot be emulated as it requires actual physical interaction or consists of mechanical devices. " |
| 1187 | | "It is not possible to fully play this "); |
| 1188 | | str.append(emulator_info::get_gamenoun()); |
| 1189 | | str.append(".\n"); |
| 1162 | str.append("\nCertain elements of this machine cannot be emulated as it requires actual physical interaction or consists of mechanical devices. " |
| 1163 | "It is not possible to fully play this machine.\n"); |
| 1190 | 1164 | } |
| 1191 | 1165 | |
| 1192 | 1166 | // find the parent of this driver |
| r253558 | r253559 | |
| 1204 | 1178 | { |
| 1205 | 1179 | // this one works, add a header and display the name of the clone |
| 1206 | 1180 | if (!foundworking) { |
| 1207 | | str.append("\n\nThere are working clones of this "); |
| 1208 | | str.append(emulator_info::get_gamenoun()); |
| 1209 | | str.append(": "); |
| 1181 | str.append("\n\nThere are working clones of this machine: "); |
| 1210 | 1182 | } |
| 1211 | 1183 | else |
| 1212 | 1184 | str.append(", "); |
trunk/src/ldplayer/ldplayer.cpp
| r253558 | r253559 | |
| 22 | 22 | #define APPNAME "MAME" |
| 23 | 23 | #define APPNAME_LOWER "mame" |
| 24 | 24 | #define CONFIGNAME "mame" |
| 25 | | #define CAPGAMENOUN "GAME" |
| 26 | | #define CAPSTARTGAMENOUN "Game" |
| 27 | | #define GAMENOUN "game" |
| 28 | | #define GAMESNOUN "games" |
| 29 | 25 | #define COPYRIGHT "Copyright Nicola Salmoria\nand the MAME team\nhttp://mamedev.org" |
| 30 | 26 | #define COPYRIGHT_INFO "Copyright Nicola Salmoria and the MAME team" |
| 31 | | #define DISCLAIMER "MAME is an emulator: it reproduces, more or less faithfully, the behaviour of\n" \ |
| 32 | | "several arcade machines. But hardware is useless without software, so an image\n" \ |
| 33 | | "of the ROMs which run on that hardware is required. Such ROMs, like any other\n" \ |
| 34 | | "commercial software, are copyrighted material and it is therefore illegal to\n" \ |
| 35 | | "use them if you don't own the original arcade machine. Needless to say, ROMs\n" \ |
| 36 | | "are not distributed together with MAME. Distribution of MAME together with ROM\n" \ |
| 37 | | "images is a violation of copyright law and should be promptly reported to the\n" \ |
| 38 | | "authors so that appropriate legal action can be taken.\n" |
| 39 | | #define USAGE "Usage: %s [%s] [options]" |
| 40 | | #define XML_ROOT "mame" |
| 41 | | #define XML_TOP "game" |
| 42 | | #define STATE_MAGIC_NUM "MAMESAVE" |
| 43 | 27 | |
| 44 | 28 | const char * emulator_info::get_appname() { return APPNAME;} |
| 45 | 29 | const char * emulator_info::get_appname_lower() { return APPNAME_LOWER;} |
| 46 | 30 | const char * emulator_info::get_configname() { return CONFIGNAME;} |
| 47 | | const char * emulator_info::get_capgamenoun() { return CAPGAMENOUN;} |
| 48 | | const char * emulator_info::get_capstartgamenoun() { return CAPSTARTGAMENOUN;} |
| 49 | | const char * emulator_info::get_gamenoun() { return GAMENOUN;} |
| 50 | | const char * emulator_info::get_gamesnoun() { return GAMESNOUN;} |
| 51 | 31 | const char * emulator_info::get_copyright() { return COPYRIGHT;} |
| 52 | 32 | const char * emulator_info::get_copyright_info() { return COPYRIGHT_INFO;} |
| 53 | | const char * emulator_info::get_disclaimer() { return DISCLAIMER;} |
| 54 | | const char * emulator_info::get_usage() { return USAGE;} |
| 55 | | const char * emulator_info::get_xml_root() { return XML_ROOT;} |
| 56 | | const char * emulator_info::get_xml_top() { return XML_TOP;} |
| 57 | | const char * emulator_info::get_state_magic_num() { return STATE_MAGIC_NUM;} |
| 58 | | void emulator_info::printf_usage(const char *par1, const char *par2) { osd_printf_info(USAGE, par1, par2); } |
| 59 | 33 | |
| 60 | 34 | /************************************* |
| 61 | 35 | * |
trunk/src/mame/mame.cpp
| r253558 | r253559 | |
| 13 | 13 | #define APPNAME "MAME" |
| 14 | 14 | #define APPNAME_LOWER "mame" |
| 15 | 15 | #define CONFIGNAME "mame" |
| 16 | | #define CAPGAMENOUN "MACHINE" |
| 17 | | #define CAPSTARTGAMENOUN "Machine" |
| 18 | | #define GAMENOUN "machine" |
| 19 | | #define GAMESNOUN "machines" |
| 20 | 16 | #define COPYRIGHT "Copyright Nicola Salmoria\nand the MAME team\nhttp://mamedev.org" |
| 21 | 17 | #define COPYRIGHT_INFO "Copyright Nicola Salmoria and the MAME team" |
| 22 | | #define DISCLAIMER "This software reproduces, more or less faithfully, the behaviour of a wide range\n" \ |
| 23 | | "of machines. But hardware is useless without software, so images of the ROMs and\n" \ |
| 24 | | "other media which run on that hardware are also required.\n" |
| 25 | | #define USAGE "Usage: %s [%s] [media] [software] [options]" |
| 26 | | #define XML_ROOT "mame" |
| 27 | | #define XML_TOP "machine" |
| 28 | | #define STATE_MAGIC_NUM "MAMESAVE" |
| 29 | 18 | |
| 30 | 19 | const char * emulator_info::get_appname() { return APPNAME;} |
| 31 | 20 | const char * emulator_info::get_appname_lower() { return APPNAME_LOWER;} |
| 32 | 21 | const char * emulator_info::get_configname() { return CONFIGNAME;} |
| 33 | | const char * emulator_info::get_capgamenoun() { return CAPGAMENOUN;} |
| 34 | | const char * emulator_info::get_capstartgamenoun() { return CAPSTARTGAMENOUN;} |
| 35 | | const char * emulator_info::get_gamenoun() { return GAMENOUN;} |
| 36 | | const char * emulator_info::get_gamesnoun() { return GAMESNOUN;} |
| 37 | 22 | const char * emulator_info::get_copyright() { return COPYRIGHT;} |
| 38 | 23 | const char * emulator_info::get_copyright_info() { return COPYRIGHT_INFO;} |
| 39 | | const char * emulator_info::get_disclaimer() { return DISCLAIMER;} |
| 40 | | const char * emulator_info::get_usage() { return USAGE;} |
| 41 | | const char * emulator_info::get_xml_root() { return XML_ROOT;} |
| 42 | | const char * emulator_info::get_xml_top() { return XML_TOP;} |
| 43 | | const char * emulator_info::get_state_magic_num() { return STATE_MAGIC_NUM;} |
| 44 | | void emulator_info::printf_usage(const char *par1, const char *par2) { osd_printf_info(USAGE, par1, par2); } |
trunk/src/mame/mess.cpp
| r253558 | r253559 | |
| 13 | 13 | #define APPNAME "MESS" |
| 14 | 14 | #define APPNAME_LOWER "mess" |
| 15 | 15 | #define CONFIGNAME "mess" |
| 16 | | #define CAPGAMENOUN "MACHINE" |
| 17 | | #define CAPSTARTGAMENOUN "Machine" |
| 18 | | #define GAMENOUN "machine" |
| 19 | | #define GAMESNOUN "machines" |
| 20 | 16 | #define COPYRIGHT "Copyright Nicola Salmoria\nand the MAME team\nhttp://mamedev.org" |
| 21 | 17 | #define COPYRIGHT_INFO "Copyright Nicola Salmoria and the MAME team" |
| 22 | | #define DISCLAIMER "This software reproduces, more or less faithfully, the behaviour of a wide range\n" \ |
| 23 | | "of machines. But hardware is useless without software, so images of the ROMs and\n" \ |
| 24 | | "other media which run on that hardware are also required.\n" |
| 25 | | #define USAGE "Usage: %s [%s] [media] [software] [options]" |
| 26 | | #define XML_ROOT "mame" |
| 27 | | #define XML_TOP "machine" |
| 28 | | #define STATE_MAGIC_NUM "MAMESAVE" |
| 29 | 18 | |
| 30 | 19 | const char * emulator_info::get_appname() { return APPNAME;} |
| 31 | 20 | const char * emulator_info::get_appname_lower() { return APPNAME_LOWER;} |
| 32 | 21 | const char * emulator_info::get_configname() { return CONFIGNAME;} |
| 33 | | const char * emulator_info::get_capgamenoun() { return CAPGAMENOUN;} |
| 34 | | const char * emulator_info::get_capstartgamenoun() { return CAPSTARTGAMENOUN;} |
| 35 | | const char * emulator_info::get_gamenoun() { return GAMENOUN;} |
| 36 | | const char * emulator_info::get_gamesnoun() { return GAMESNOUN;} |
| 37 | | const char * emulator_info::get_copyright() { return COPYRIGHT;} |
| 38 | | const char * emulator_info::get_copyright_info() { return COPYRIGHT_INFO;} |
| 39 | | const char * emulator_info::get_disclaimer() { return DISCLAIMER;} |
| 40 | | const char * emulator_info::get_usage() { return USAGE;} |
| 41 | | const char * emulator_info::get_xml_root() { return XML_ROOT;} |
| 42 | | const char * emulator_info::get_xml_top() { return XML_TOP;} |
| 43 | | const char * emulator_info::get_state_magic_num() { return STATE_MAGIC_NUM;} |
| 44 | | void emulator_info::printf_usage(const char *par1, const char *par2) { osd_printf_info(USAGE, par1, par2); } |