Mercurial > repos > blastem
diff blastem.c @ 2083:372625dd9590
Persist BRAM to file. Load BIOS relative to blastem directory
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 03 Feb 2022 23:41:53 -0800 |
parents | 3f29e2726522 |
children | 2449c88cea36 |
line wrap: on
line diff
--- a/blastem.c Thu Feb 03 23:41:40 2022 -0800 +++ b/blastem.c Thu Feb 03 23:41:53 2022 -0800 @@ -332,7 +332,9 @@ free(save_state_path); save_state_path = alloc_concat_m(3, parts); context->save_dir = save_dir; - if (info->save_type != SAVE_NONE) { + if (info->save_type != SAVE_NONE || context->type == SYSTEM_SEGACD + || (context->type == SYSTEM_GENESIS && info->wants_cd) + ) { context->load_save(context); if (!persist_save_registered) { atexit(persist_save);