1.1 --- a/src/main.c Sat Sep 08 04:38:38 2007 +0000
1.2 +++ b/src/main.c Sun Sep 16 06:59:47 2007 +0000
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.8 * Main program, initializes dreamcast and gui, then passes control off to
1.9 * the gtk main loop (currently).
1.12 #define S3M_PLAYER "s3mplay.bin"
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.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.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.32 + case 'x': /* Use experimental translator */
1.39 gdrom_mount_image( disc_file );
1.42 + sh4_set_use_xlat( use_xlat );
1.44 if( start_immediately ) {
1.45 if( time_nanos != 0 || time_secs != 0 ) {
1.46 dreamcast_run_for(time_secs, time_nanos);