--- uae/src/main.c 2018/04/24 16:54:45 1.1.1.11 +++ uae/src/main.c 2018/04/24 17:00:05 1.1.1.14 @@ -6,7 +6,6 @@ * Copyright 1995 Ed Hanway * Copyright 1995, 1996, 1997 Bernd Schmidt */ - #include "sysconfig.h" #include "sysdeps.h" #include @@ -16,12 +15,12 @@ #include "threaddep/penguin.h" #include "uae.h" #include "gensound.h" +#include "audio.h" #include "sounddep/sound.h" #include "events.h" #include "memory.h" #include "custom.h" #include "serial.h" -#include "readcpu.h" #include "newcpu.h" #include "disk.h" #include "debug.h" @@ -104,7 +103,6 @@ void default_prefs (struct uae_prefs *p) p->use_serial = 0; p->serial_demand = 0; p->parallel_demand = 0; - p->automount_uaedev = 1; p->jport0 = 2; p->jport1 = 0; @@ -149,6 +147,8 @@ void default_prefs (struct uae_prefs *p) p->immediate_blits = 0; p->blits_32bit_enabled = 0; + p->collision_level = 1; + p->fast_copper = 1; strcpy (p->df[0], "df0.adf"); strcpy (p->df[1], "df1.adf"); @@ -246,11 +246,14 @@ static void fix_options (void) currprefs.fastmem_size = 0; err = 1; } +#if 0 if (currprefs.m68k_speed < -1 || currprefs.m68k_speed > 20) { fprintf (stderr, "Bad value for -w parameter: must be -1, 0, or within 1..20.\n"); currprefs.m68k_speed = 4; err = 1; } +#endif + if (currprefs.produce_sound < 0 || currprefs.produce_sound > 3) { fprintf (stderr, "Bad value for -S parameter: enable value must be within 0..3\n"); currprefs.produce_sound = 0; @@ -281,6 +284,11 @@ static void fix_options (void) currprefs.nr_floppies = 4; err = 1; } + if (currprefs.collision_level < 0 || currprefs.collision_level > 3) { + fprintf (stderr, "Invalid collision support level. Using 1.\n"); + currprefs.collision_level = 1; + err = 1; + } if (err) fprintf (stderr, "Please use \"uae -h\" to get usage information.\n"); @@ -411,6 +419,9 @@ void write_log_standard (const char *fmt void reset_all_systems (void) { + init_eventtab (); + + memory_reset (); bsdlib_reset (); filesys_reset (); filesys_start_threads (); @@ -470,6 +481,7 @@ void real_main (int argc, char **argv) rtarea_init (); hardfile_install (); scsidev_install (); + ahi_install (); parse_cmdline_and_init_file (argc, argv); @@ -490,7 +502,7 @@ void real_main (int argc, char **argv) exit (0); } } - if (sound_available && currprefs.produce_sound > 1 && ! init_sound ()) { + if (sound_available && currprefs.produce_sound > 1 && ! init_audio ()) { fprintf (stderr, "Sound driver unavailable: Sound output disabled\n"); currprefs.produce_sound = 0; }