# HG changeset patch # User Michael Pavone # Date 1456472354 28800 # Node ID 4f4f8385da8d490cc3c8b469bd6d04ab8b570b4e # Parent 00c57f1925c3010e88ac28e160ab0c8d14cc114e Fix saving of SRAM/EEPROM when switching games in menu diff -r 00c57f1925c3 -r 4f4f8385da8d blastem.c --- a/blastem.c Thu Feb 25 23:08:50 2016 -0800 +++ b/blastem.c Thu Feb 25 23:39:14 2016 -0800 @@ -1173,7 +1173,9 @@ if (menu && menu_context->next_rom) { if (game_context) { if (game_context->save_type != SAVE_NONE) { + genesis = game_context; persist_save(); + genesis = menu_context; } free(game_context->cart); free(save_filename);