Search
lxdream.org :: lxdream :: r379:7e1c33a184d8
lxdream 0.9.1
released Jun 29
Download Now
changeset379:7e1c33a184d8
parent378:f10fbdd4e24b
child380:2e8166bf6832
authornkeynes
dateWed Sep 12 09:21:01 2007 +0000 (13 years ago)
Hook up the translator as a command line option
src/main.c
1.1 --- a/src/main.c Wed Sep 12 09:20:38 2007 +0000
1.2 +++ b/src/main.c Wed Sep 12 09:21:01 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: main.c,v 1.22 2007-09-08 04:38:38 nkeynes Exp $
1.6 + * $Id: main.c,v 1.23 2007-09-12 09:21:01 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 @@ -35,7 +35,7 @@
1.11
1.12 #define S3M_PLAYER "s3mplay.bin"
1.13
1.14 -char *option_list = "a:s:A:V:puhbd:c:t:";
1.15 +char *option_list = "a:s:A:V:puhbd:c:t:x";
1.16 struct option longopts[1] = { { NULL, 0, 0, 0 } };
1.17 char *aica_program = NULL;
1.18 char *s3m_file = NULL;
1.19 @@ -46,6 +46,7 @@
1.20 gboolean start_immediately = FALSE;
1.21 gboolean headless = FALSE;
1.22 gboolean without_bios = FALSE;
1.23 +gboolean use_xlat = FALSE;
1.24 uint32_t time_secs = 0;
1.25 uint32_t time_nanos = 0;
1.26
1.27 @@ -103,6 +104,10 @@
1.28 t = strtod(optarg, NULL);
1.29 time_secs = (uint32_t)t;
1.30 time_nanos = (int)((t - time_secs) * 1000000000);
1.31 + break;
1.32 + case 'x': /* Use experimental translator */
1.33 + use_xlat = TRUE;
1.34 + break;
1.35 }
1.36 }
1.37
1.38 @@ -179,6 +184,8 @@
1.39 gdrom_mount_image( disc_file );
1.40 }
1.41
1.42 + sh4_set_use_xlat( use_xlat );
1.43 +
1.44 if( start_immediately ) {
1.45 if( time_nanos != 0 || time_secs != 0 ) {
1.46 dreamcast_run_for(time_secs, time_nanos);
.