summaryrefslogtreecommitdiff
path: root/romdb.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-11-08 22:03:34 -0800
committerMichael Pavone <pavone@retrodev.com>2015-11-08 22:03:34 -0800
commit7d6031ae997cfd08b51e687cc68d11d572b23bf7 (patch)
tree171a5092126e95f3ccd17a8a2c0c98434b7a7e7e /romdb.c
parent9fed70ee51604f4bdf49dfebad4658c5cc2bfdd1 (diff)
Make menu stuff work on Android (theoretically)
Diffstat (limited to 'romdb.c')
-rw-r--r--romdb.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/romdb.c b/romdb.c
index 76ddbde..b34c232 100644
--- a/romdb.c
+++ b/romdb.c
@@ -385,17 +385,7 @@ uint8_t read_eeprom_i2c_b(uint32_t address, void * context)
tern_node *load_rom_db()
{
-#ifdef __ANDROID__
- tern_node *db = parse_config_file_assets("rom.db");
-#else
- char *exe_dir = get_exe_dir();
- if (!exe_dir) {
- fatal_error("Failed to find executable path\n");
- }
- char *path = alloc_concat(exe_dir, "/rom.db");
- tern_node *db = parse_config_file(path);
- free(path);
-#endif
+ tern_node *db = parse_bundled_config("rom.db");
if (!db) {
fatal_error("Failed to load ROM DB\n");
}