Search
lxdream.org :: lxdream/src/main.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/main.c
changeset 87:11208d725b61
prev77:935dd09c5ace
next94:8d80d9c7cc7d
author nkeynes
date Sun Jan 22 22:40:53 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Add dummied-up BIOS syscalls
file annotate diff log raw
1.1 --- a/src/main.c Mon Jan 16 11:18:29 2006 +0000
1.2 +++ b/src/main.c Sun Jan 22 22:40:53 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.11 2006-01-16 11:18:29 nkeynes Exp $
1.6 + * $Id: main.c,v 1.12 2006-01-22 22:40:53 nkeynes Exp $
1.7 *
1.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.10 @@ -27,15 +27,17 @@
1.11 #include <gnome.h>
1.12 #include "gui/gui.h"
1.13 #include "dream.h"
1.14 +#include "bios.h"
1.15 #include "dreamcast.h"
1.16
1.17 #define S3M_PLAYER "s3mplay.bin"
1.18
1.19 -char *option_list = "a:s:A:V:ph";
1.20 +char *option_list = "a:s:A:V:phb";
1.21 char *aica_program = NULL;
1.22 char *s3m_file = NULL;
1.23 gboolean start_immediately = FALSE;
1.24 gboolean headless = FALSE;
1.25 +gboolean without_bios = FALSE;
1.26
1.27 int main (int argc, char *argv[])
1.28 {
1.29 @@ -61,6 +63,9 @@
1.30 case 'p': /* Start immediately */
1.31 start_immediately = TRUE;
1.32 break;
1.33 + case 'b': /* No BIOS */
1.34 + without_bios = TRUE;
1.35 + break;
1.36 case 'h': /* Headless */
1.37 headless = TRUE;
1.38 break;
1.39 @@ -87,6 +92,9 @@
1.40 }
1.41 }
1.42
1.43 + if( without_bios ) {
1.44 + bios_install();
1.45 + }
1.46 INFO( "DreamOn! ready..." );
1.47 if( start_immediately )
1.48 dreamcast_run();
.