From 5578fe77d7bfb19ae277f6ced9a215eb16fdc722 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Sat, 8 Oct 2016 22:10:05 -0500 Subject: [PATCH] Try and fail stateman init to clear buffer if newly disabled. --- gtk/src/gtk_s9x.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk/src/gtk_s9x.cpp b/gtk/src/gtk_s9x.cpp index 955acf97..32f000ec 100644 --- a/gtk/src/gtk_s9x.cpp +++ b/gtk/src/gtk_s9x.cpp @@ -222,10 +222,9 @@ S9xOpenROM (const char *rom_filename) CPU.Flags = flags; - if (gui_config->rewind_buffer_size) + if (stateMan.init (gui_config->rewind_buffer_size * 1024 * 1024)) { printf ("Using rewind buffer of %uMB\n", gui_config->rewind_buffer_size); - stateMan.init (gui_config->rewind_buffer_size * 1024 * 1024); } S9xROMLoaded ();