comparison romdb.c @ 1503:a763523dadf4 segacd

Added code for initializing a combined Genesis + Sega CD system when a Sega CD ISO is loaded
author Michael Pavone <pavone@retrodev.com>
date Wed, 13 Dec 2017 09:44:41 -0800
parents 14a2834d010c
children 5dacaef602a7
comparison
equal deleted inserted replaced
1502:2564b6ba2e12 1503:a763523dadf4
31 return "NOR Flash"; 31 return "NOR Flash";
32 } 32 }
33 return "SRAM"; 33 return "SRAM";
34 } 34 }
35 35
36 tern_node *load_rom_db() 36 tern_node *get_rom_db()
37 { 37 {
38 tern_node *db = parse_bundled_config("rom.db"); 38 static tern_node *db;
39 if (!db) { 39 if (!db) {
40 fatal_error("Failed to load ROM DB\n"); 40 db = parse_bundled_config("rom.db");
41 if (!db) {
42 fatal_error("Failed to load ROM DB\n");
43 }
41 } 44 }
42 return db; 45 return db;
43 } 46 }
44 47
45 void free_rom_info(rom_info *info) 48 void free_rom_info(rom_info *info)