Move get_libretro_core_name to HAE_LIBRETRO_MANAGEMENT ifdef

This commit is contained in:
twinaphex 2013-03-13 06:43:18 +01:00
parent 24a4618f88
commit 7edb3866f8

View File

@ -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);