# HG changeset patch # User Michael Pavone # Date 1462238969 25200 # Node ID 6c54d5a5c7c0fd29dd8ab7ee2b2ea3a3b08db35e # Parent ef923c4b89772660b1028142ac72f45453d6ce8a Handle failures to load save state from the menu more gracefully diff -r ef923c4b8977 -r 6c54d5a5c7c0 menu.c --- a/menu.c Mon May 02 18:27:07 2016 -0700 +++ b/menu.c Mon May 02 18:29:29 2016 -0700 @@ -301,6 +301,9 @@ char *gstpath = alloc_concat_m(3, parts); uint32_t pc = load_gst(gen->next_context, gstpath); free(gstpath); + if (!pc) { + break; + } gen->next_context->m68k->resume_pc = get_native_address_trans(gen->next_context->m68k, pc); } m68k->should_return = 1;