comparison genesis.c @ 1449:f82decf0537d

Fix savestate path calculation in genesis load_state
author Michael Pavone <pavone@retrodev.com>
date Tue, 29 Aug 2017 00:36:25 -0700
parents 349d50930c03
children f284ad74afe1
comparison
equal deleted inserted replaced
1448:9327c1dc3791 1449:f82decf0537d
1029 slotname = "quicksave.state"; 1029 slotname = "quicksave.state";
1030 } else { 1030 } else {
1031 numslotname[5] = '0' + slot; 1031 numslotname[5] = '0' + slot;
1032 slotname = numslotname; 1032 slotname = numslotname;
1033 } 1033 }
1034 char const *parts[] = {gen->header.next_context->save_dir, PATH_SEP, slotname}; 1034 char const *parts[] = {gen->header.save_dir, PATH_SEP, slotname};
1035 char *statepath = alloc_concat_m(3, parts); 1035 char *statepath = alloc_concat_m(3, parts);
1036 deserialize_buffer state; 1036 deserialize_buffer state;
1037 uint32_t pc = 0; 1037 uint32_t pc = 0;
1038 uint8_t ret; 1038 uint8_t ret;
1039 if (load_from_file(&state, statepath)) { 1039 if (load_from_file(&state, statepath)) {