Use more approriate namespacing.
Replace get_libretro_core_name namespacing.
This commit is contained in:
parent
f7e75d69fa
commit
ab93fa6bd2
|
@ -257,12 +257,12 @@ static void load_symbols(void)
|
|||
SYM(retro_get_memory_size);
|
||||
}
|
||||
|
||||
void get_libretro_core_name(char *name, size_t size)
|
||||
void libretro_get_current_core_pathname(char *name, size_t size)
|
||||
{
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
struct retro_system_info info;
|
||||
struct retro_system_info info = {0};
|
||||
pretro_get_system_info(&info);
|
||||
const char *id = info.library_name ? info.library_name : "Unknown";
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ void libretro_free_system_info(struct retro_system_info *info);
|
|||
#endif
|
||||
|
||||
// Transforms a library id to a name suitable as a pathname.
|
||||
void get_libretro_core_name(char *name, size_t size);
|
||||
void libretro_get_current_core_pathname(char *name, size_t size);
|
||||
|
||||
extern void (*pretro_init)(void);
|
||||
extern void (*pretro_deinit)(void);
|
||||
|
|
|
@ -61,7 +61,7 @@ static bool install_libretro_core(const char *core_exe_path, const char *tmp_pat
|
|||
int ret = 0;
|
||||
char tmp_path2[PATH_MAX], tmp_pathnewfile[PATH_MAX];
|
||||
|
||||
get_libretro_core_name(tmp_path2, sizeof(tmp_path2));
|
||||
libretro_get_current_core_pathname(tmp_path2, sizeof(tmp_path2));
|
||||
|
||||
strlcat(tmp_path2, extension, sizeof(tmp_path2));
|
||||
snprintf(tmp_pathnewfile, sizeof(tmp_pathnewfile), "%s%s", tmp_path, tmp_path2);
|
||||
|
|
|
@ -354,7 +354,7 @@ static void system_post_init(void)
|
|||
{
|
||||
char core_name[64];
|
||||
|
||||
get_libretro_core_name(core_name, sizeof(core_name));
|
||||
libretro_get_current_core_pathname(core_name, sizeof(core_name));
|
||||
snprintf(input_path, sizeof(input_path), "%s/%s.cfg", default_paths.input_presets_dir, core_name);
|
||||
config_read_keybinds(input_path);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue