mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 10:40:39 +00:00
Move get_libretro_core_name to HAE_LIBRETRO_MANAGEMENT ifdef
This commit is contained in:
parent
24a4618f88
commit
7edb3866f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user