mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
(dynamic.c) Cleanups
This commit is contained in:
parent
5d48b98014
commit
559669fc4a
18
dynamic.c
18
dynamic.c
@ -356,13 +356,7 @@ static dylib_t libretro_get_system_info_lib(const char *path,
|
|||||||
void (*proc)(struct retro_system_info*);
|
void (*proc)(struct retro_system_info*);
|
||||||
|
|
||||||
if (!lib)
|
if (!lib)
|
||||||
{
|
|
||||||
RARCH_ERR("%s: \"%s\"\n",
|
|
||||||
msg_hash_to_str(MSG_FAILED_TO_OPEN_LIBRETRO_CORE),
|
|
||||||
path);
|
|
||||||
RARCH_ERR("Error(s): %s\n", dylib_error());
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
proc = (void (*)(struct retro_system_info*))
|
proc = (void (*)(struct retro_system_info*))
|
||||||
dylib_proc(lib, "retro_get_system_info");
|
dylib_proc(lib, "retro_get_system_info");
|
||||||
@ -382,10 +376,8 @@ static dylib_t libretro_get_system_info_lib(const char *path,
|
|||||||
set_environ = (void (*)(retro_environment_t))
|
set_environ = (void (*)(retro_environment_t))
|
||||||
dylib_proc(lib, "retro_set_environment");
|
dylib_proc(lib, "retro_set_environment");
|
||||||
|
|
||||||
if (!set_environ)
|
if (set_environ)
|
||||||
return lib;
|
libretro_get_environment_info(set_environ, load_no_content);
|
||||||
|
|
||||||
libretro_get_environment_info(set_environ, load_no_content);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return lib;
|
return lib;
|
||||||
@ -427,7 +419,13 @@ bool libretro_get_system_info(const char *path,
|
|||||||
path, &dummy_info, load_no_content);
|
path, &dummy_info, load_no_content);
|
||||||
|
|
||||||
if (!lib)
|
if (!lib)
|
||||||
|
{
|
||||||
|
RARCH_ERR("%s: \"%s\"\n",
|
||||||
|
msg_hash_to_str(MSG_FAILED_TO_OPEN_LIBRETRO_CORE),
|
||||||
|
path);
|
||||||
|
RARCH_ERR("Error(s): %s\n", dylib_error());
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
if (load_no_content)
|
if (load_no_content)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user