comparison romdb.c @ 1898:ebf124803a93

Make sure save_type is properly initialized
author Mike Pavone <pavone@retrodev.com>
date Sun, 02 Feb 2020 13:32:51 -0800
parents d60f2d7c02a5
children 6ece1e2c7a15
comparison
equal deleted inserted replaced
1897:59a83c21d9d2 1898:ebf124803a93
254 if (size > rom_end) { 254 if (size > rom_end) {
255 rom_end = size; 255 rom_end = size;
256 } else if (rom_end > nearest_pow2(size)) { 256 } else if (rom_end > nearest_pow2(size)) {
257 rom_end = nearest_pow2(size); 257 rom_end = nearest_pow2(size);
258 } 258 }
259 info->save_type = SAVE_NONE;
259 if (size >= 0x80000 && !memcmp("SEGA SSF", rom + 0x100, 8)) { 260 if (size >= 0x80000 && !memcmp("SEGA SSF", rom + 0x100, 8)) {
260 info->mapper_start_index = 0; 261 info->mapper_start_index = 0;
261 info->mapper_type = MAPPER_SEGA; 262 info->mapper_type = MAPPER_SEGA;
262 info->map_chunks = base_chunks + 9; 263 info->map_chunks = base_chunks + 9;
263 info->map = malloc(sizeof(memmap_chunk) * info->map_chunks); 264 info->map = malloc(sizeof(memmap_chunk) * info->map_chunks);