mirror of
https://github.com/libretro/RetroArch
synced 2025-02-10 21:40:22 +00:00
(core_info.c) Some code cleanups
This commit is contained in:
parent
cc992f557e
commit
c56f53599a
11
core_info.c
11
core_info.c
@ -58,18 +58,19 @@ core_info_list_t *core_info_list_new(const char *modules_path)
|
|||||||
path_remove_extension(info_path_base);
|
path_remove_extension(info_path_base);
|
||||||
|
|
||||||
#if defined(RARCH_MOBILE) || defined(RARCH_CONSOLE)
|
#if defined(RARCH_MOBILE) || defined(RARCH_CONSOLE)
|
||||||
|
// Android libs are deployed with a prefix 'lib' (libretro_*.so, etc)
|
||||||
|
// Non-Android Libs (mobile/console) are deployed with a system name suffix (*_ios.dylib, *_qnx.so, etc).
|
||||||
#ifdef ANDROID
|
#ifdef ANDROID
|
||||||
// Android libs have to be prefixed with 'lib' - so cores begin with 'libretro_' prefix
|
|
||||||
char *substr = strstr(info_path_base, "libretro_");
|
char *substr = strstr(info_path_base, "libretro_");
|
||||||
if (substr)
|
|
||||||
*substr = '\0';
|
|
||||||
strlcat(info_path_base, "_libretro", sizeof(info_path_base));
|
|
||||||
#else
|
#else
|
||||||
// Libs are deployed with a suffix (*_ios.dylib, *_qnx.so, etc).
|
|
||||||
char *substr = strrchr(info_path_base, '_');
|
char *substr = strrchr(info_path_base, '_');
|
||||||
|
#endif
|
||||||
if (substr)
|
if (substr)
|
||||||
*substr = '\0';
|
*substr = '\0';
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
strlcat(info_path_base, "_libretro", sizeof(info_path_base));
|
||||||
#endif
|
#endif
|
||||||
strlcat(info_path_base, ".info", sizeof(info_path_base));
|
strlcat(info_path_base, ".info", sizeof(info_path_base));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user