libretro_get_system_info_lib - report error if dynamic library

could not be loaded
This commit is contained in:
twinaphex 2016-01-22 06:04:52 +01:00
parent c5b13de208
commit 9b47e538c6

View File

@ -129,7 +129,12 @@ static dylib_t libretro_get_system_info_lib(const char *path,
void (*proc)(struct retro_system_info*);
if (!lib)
{
RARCH_ERR("Failed to open libretro core: \"%s\"\n",
path);
RARCH_ERR("Error(s): %s\n", dylib_error());
return NULL;
}
proc = (void (*)(struct retro_system_info*))
dylib_proc(lib, "retro_get_system_info");