comparison blastem.c @ 2604:c768bbd912f1

Give sega 8-bit consoles separate system_type enum values and allow selecting them from the command line
author Michael Pavone <pavone@retrodev.com>
date Thu, 13 Feb 2025 23:07:31 -0800
parents 251cc75574af
children c30e5548154f
comparison
equal deleted inserted replaced
2603:acb8f0f70a68 2604:c768bbd912f1
429 } 429 }
430 break; 430 break;
431 case 'm': 431 case 'm':
432 i++; 432 i++;
433 if (i >= argc) { 433 if (i >= argc) {
434 fatal_error("-r must be followed by a machine type (sms, gen or jag)\n"); 434 fatal_error("-r must be followed by a machine type (sms, gg, sg, sc, gen, pico, copera, jag or media)\n");
435 } 435 }
436 if (!strcmp("sms", argv[i])) { 436 if (!strcmp("sms", argv[i])) {
437 stype = force_stype = SYSTEM_SMS; 437 stype = force_stype = SYSTEM_SMS;
438 } else if (!strcmp("gg", argv[i])) {
439 stype = force_stype = SYSTEM_GAME_GEAR;
440 } else if (!strcmp("sg", argv[i])) {
441 stype = force_stype = SYSTEM_SG1000;
442 } else if (!strcmp("sc", argv[i])) {
443 stype = force_stype = SYSTEM_SC3000;
438 } else if (!strcmp("gen", argv[i])) { 444 } else if (!strcmp("gen", argv[i])) {
439 stype = force_stype = SYSTEM_GENESIS; 445 stype = force_stype = SYSTEM_GENESIS;
440 } else if (!strcmp("pico", argv[i])) { 446 } else if (!strcmp("pico", argv[i])) {
441 stype = force_stype = SYSTEM_PICO; 447 stype = force_stype = SYSTEM_PICO;
442 } else if (!strcmp("copera", argv[i])) { 448 } else if (!strcmp("copera", argv[i])) {
478 "Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n" 484 "Usage: blastem [OPTIONS] ROMFILE [WIDTH] [HEIGHT]\n"
479 "Options:\n" 485 "Options:\n"
480 " -h Print this help text\n" 486 " -h Print this help text\n"
481 " -r (J|U|E) Force region to Japan, US or Europe respectively\n" 487 " -r (J|U|E) Force region to Japan, US or Europe respectively\n"
482 " -m MACHINE Force emulated machine type to MACHINE. Valid values are:\n" 488 " -m MACHINE Force emulated machine type to MACHINE. Valid values are:\n"
483 " sms - Sega Master System/Mark III\n" 489 " sms - Sega Master System/Mark III\n"
484 " gen - Sega Genesis/Megadrive\n" 490 " gg - Sega Game Gear\n"
485 " pico - Sega Pico\n" 491 " sg - Sega SG-1000\n"
486 " media - Media Player\n" 492 " sc - Sega SC-3000\n"
493 " gen - Sega Genesis/Megadrive\n"
494 " pico - Sega Pico\n"
495 " copera - Yamaha Copera\n"
496 " media - Media Player\n"
487 " -f Toggles fullscreen mode\n" 497 " -f Toggles fullscreen mode\n"
488 " -g Disable OpenGL rendering\n" 498 " -g Disable OpenGL rendering\n"
489 " -s FILE Load a GST format savestate from FILE\n" 499 " -s FILE Load a GST format savestate from FILE\n"
490 " -o FILE Load FILE as a lock-on cartridge\n" 500 " -o FILE Load FILE as a lock-on cartridge\n"
491 " -d Enter debugger on startup\n" 501 " -d Enter debugger on startup\n"