From 642803c0ef95efb81953545b1efc173d9e813e39 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 23 May 2009 12:03:20 +0000 Subject: [PATCH] Reset if the amiga model changed --- src/gui-sdl/gui-sdl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gui-sdl/gui-sdl.c b/src/gui-sdl/gui-sdl.c index 89286f6..618e79e 100644 --- a/src/gui-sdl/gui-sdl.c +++ b/src/gui-sdl/gui-sdl.c @@ -478,9 +478,10 @@ static int get_model(void) static void amiga_model_options(void) { int submenus[2]; + int cur_model = get_model(); int opt; - submenus[0] = get_model(); + submenus[0] = cur_model; submenus[1] = get_emulation_accuracy(); opt = menu_select_title("Amiga model menu", @@ -496,6 +497,11 @@ static void amiga_model_options(void) default: /* custom */ break; } + + /* Reset the Amiga if the model has changed */ + if (cur_model != submenus[0]) + uae_reset(1); + /* Cycle-exact or not? */ set_emulation_accuracy(submenus[1]); if (opt == 4)