mirror of
https://github.com/Oibaf66/uae-wii.git
synced 2024-11-10 21:05:17 +01:00
Reset if the amiga model changed
This commit is contained in:
parent
c4fcb7b071
commit
642803c0ef
@ -478,9 +478,10 @@ static int get_model(void)
|
|||||||
static void amiga_model_options(void)
|
static void amiga_model_options(void)
|
||||||
{
|
{
|
||||||
int submenus[2];
|
int submenus[2];
|
||||||
|
int cur_model = get_model();
|
||||||
int opt;
|
int opt;
|
||||||
|
|
||||||
submenus[0] = get_model();
|
submenus[0] = cur_model;
|
||||||
submenus[1] = get_emulation_accuracy();
|
submenus[1] = get_emulation_accuracy();
|
||||||
|
|
||||||
opt = menu_select_title("Amiga model menu",
|
opt = menu_select_title("Amiga model menu",
|
||||||
@ -496,6 +497,11 @@ static void amiga_model_options(void)
|
|||||||
default: /* custom */
|
default: /* custom */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Reset the Amiga if the model has changed */
|
||||||
|
if (cur_model != submenus[0])
|
||||||
|
uae_reset(1);
|
||||||
|
|
||||||
/* Cycle-exact or not? */
|
/* Cycle-exact or not? */
|
||||||
set_emulation_accuracy(submenus[1]);
|
set_emulation_accuracy(submenus[1]);
|
||||||
if (opt == 4)
|
if (opt == 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user