Loading and saving default config didn't create identical config file.

This commit is contained in:
Toni Wilen 2023-04-23 19:15:21 +03:00
parent 9e67321729
commit 15899df8aa
3 changed files with 5 additions and 1 deletions

View File

@ -8524,7 +8524,7 @@ void default_prefs (struct uae_prefs *p, bool reset, int type)
p->fpu_model = 0;
p->cpu_model = 68000;
p->m68k_speed_throttle = 0;
p->cpu_clock_multiplier = 0;
p->cpu_clock_multiplier = 2 * 256;
p->cpu_frequency = 0;
p->mmu_model = 0;
p->cpu060_revision = 6;

View File

@ -7589,7 +7589,10 @@ static void disableifempty (struct uae_prefs *prefs)
if (!input_get_default_keyboard(l))
disableifempty2 (&keyboards[l]);
}
// Configuration #1-#3
prefs->internalevent_settings[0]->enabled = true;
prefs->internalevent_settings[1]->enabled = true;
prefs->internalevent_settings[2]->enabled = true;
}
static void matchdevices(struct uae_prefs *p, struct inputdevice_functions *inf, struct uae_input_device *uid, int devnum, int match_mask)

View File

@ -1127,6 +1127,7 @@ static int real_main2 (int argc, TCHAR **argv)
inputdevice_init ();
copy_prefs(&currprefs, &changed_prefs);
inputdevice_updateconfig(&currprefs, &changed_prefs);
no_gui = ! currprefs.start_gui;
if (restart_program == 2 || restart_program == 4)