Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 1100:50e702af9373
prev1081:ef31ae97bb8b
next1107:7b279d10f46f
author nkeynes
date Mon Feb 15 17:27:14 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Hook up the fake bios boot
Use fakebios if invoked with -b, or if there's no boot rom loaded
file annotate diff log raw
1.1 --- a/src/main.c Tue Dec 01 18:18:15 2009 +1000
1.2 +++ b/src/main.c Mon Feb 15 17:27:14 2010 +1000
1.3 @@ -41,10 +41,11 @@
1.4 #include "hotkeys.h"
1.5 #include "plugin.h"
1.6
1.7 -char *option_list = "a:A:c:dfg:G:hHl:m:npt:T:uvV:x?";
1.8 +char *option_list = "a:A:bc:dfg:G:hHl:m:npt:T:uvV:x?";
1.9 struct option longopts[] = {
1.10 { "aica", required_argument, NULL, 'a' },
1.11 { "audio", required_argument, NULL, 'A' },
1.12 + { "biosless", no_argument, NULL, 'b' },
1.13 { "config", required_argument, NULL, 'c' },
1.14 { "debugger", no_argument, NULL, 'D' },
1.15 { "fullscreen", no_argument, NULL, 'f' },
1.16 @@ -72,6 +73,7 @@
1.17 gboolean use_xlat = TRUE;
1.18 gboolean show_debugger = FALSE;
1.19 gboolean show_fullscreen = FALSE;
1.20 +gboolean use_bootrom = TRUE;
1.21 extern uint32_t sh4_cpu_multiplier;
1.22
1.23 static void print_version()
1.24 @@ -87,6 +89,7 @@
1.25 printf( "Options:\n" );
1.26 printf( " -a, --aica=PROGFILE %s\n", _("Run the AICA SPU only, with the supplied program") );
1.27 printf( " -A, --audio=DRIVER %s\n", _("Use the specified audio driver (? to list)") );
1.28 + printf( " -b, --biosless %s\n", _("Run without the BIOS boot rom even if available") );
1.29 printf( " -c, --config=CONFFILE %s\n", _("Load configuration from CONFFILE") );
1.30 printf( " -d, --debugger %s\n", _("Start in debugger mode") );
1.31 printf( " -f, --fullscreen %s\n", _("Start in fullscreen mode") );
1.32 @@ -133,6 +136,8 @@
1.33 case 'A': /* Audio driver */
1.34 audio_driver_name = optarg;
1.35 break;
1.36 + case 'b': /* No Boot rom */
1.37 + use_bootrom = FALSE;
1.38 case 'c': /* Config file */
1.39 lxdream_set_config_filename(optarg);
1.40 break;
1.41 @@ -223,7 +228,7 @@
1.42 vmulist_init();
1.43
1.44 if( aica_program == NULL ) {
1.45 - dreamcast_init();
1.46 + dreamcast_init(use_bootrom);
1.47 } else {
1.48 dreamcast_configure_aica_only();
1.49 mem_load_block( aica_program, 0x00800000, 2048*1024 );
.