From 3da5205efa2e01d539861618e44899d17b10e9d2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 7 Apr 2014 23:02:12 +0200 Subject: [PATCH] (Console) Build fix for libretro_find_subsystem_info --- dynamic.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/dynamic.c b/dynamic.c index adb5291174..08f8e21ba4 100644 --- a/dynamic.c +++ b/dynamic.c @@ -185,20 +185,6 @@ void libretro_free_system_info(struct retro_system_info *info) memset(info, 0, sizeof(*info)); } -const struct retro_subsystem_info *libretro_find_subsystem_info(const struct retro_subsystem_info *info, unsigned num_info, - const char *ident) -{ - unsigned i; - for (i = 0; i < num_info; i++) - { - if (!strcmp(info[i].ident, ident)) - return &info[i]; - else if (!strcmp(info[i].desc, ident)) // Doesn't hurt - return &info[i]; - } - - return NULL; -} static bool find_first_libretro(char *path, size_t size, const char *dir, const char *rom_path) @@ -253,6 +239,21 @@ static bool find_first_libretro(char *path, size_t size, } #endif +const struct retro_subsystem_info *libretro_find_subsystem_info(const struct retro_subsystem_info *info, unsigned num_info, + const char *ident) +{ + unsigned i; + for (i = 0; i < num_info; i++) + { + if (!strcmp(info[i].ident, ident)) + return &info[i]; + else if (!strcmp(info[i].desc, ident)) // Doesn't hurt + return &info[i]; + } + + return NULL; +} + static void load_symbols(bool is_dummy) { if (is_dummy)