Try and fail stateman init to clear buffer if newly disabled.

This commit is contained in:
Brandon Wright 2016-10-08 22:10:05 -05:00
parent e018acf285
commit 5578fe77d7

View File

@ -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 ();