From 7edb3866f89250e5d231c606a1d46df8f8a91bac Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 13 Mar 2013 06:43:18 +0100 Subject: [PATCH] Move get_libretro_core_name to HAE_LIBRETRO_MANAGEMENT ifdef --- frontend/frontend_console.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/frontend_console.c b/frontend/frontend_console.c index 309e16b040..a3eae52983 100644 --- a/frontend/frontend_console.c +++ b/frontend/frontend_console.c @@ -114,6 +114,8 @@ static void verbose_log_init(void) RARCH_LOG("Turning on verbose logging...\n"); } +#ifdef HAVE_LIBRETRO_MANAGEMENT + // Transforms a library id to a name suitable as a pathname. static void get_libretro_core_name(char *name, size_t size) { @@ -142,8 +144,6 @@ static void get_libretro_core_name(char *name, size_t size) } } -#ifdef HAVE_LIBRETRO_MANAGEMENT - // If a CORE executable of name CORE.extension exists, rename filename // to a more sane name. static bool install_libretro_core(const char *core_exe_path, const char *tmp_path, const char *extension) @@ -274,9 +274,7 @@ begin_loop: else args.config_path = NULL; - int init_ret = rarch_main_init_wrap(&args); - - if (init_ret == 0) + if (rarch_main_init_wrap(&args) == 0) { RARCH_LOG("rarch_main_init succeeded.\n"); g_extern.lifecycle_mode_state |= (1ULL << MODE_GAME);