mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Cleanups / start going through config_get_active_core_path
This commit is contained in:
parent
a6aa0b8e0c
commit
066832c8a2
@ -1981,9 +1981,9 @@ static void config_load_core_specific(void)
|
||||
|
||||
*path_core_specific_config = '\0';
|
||||
|
||||
if (string_is_empty(settings->path.libretro))
|
||||
if (string_is_empty(config_get_active_core_path()))
|
||||
{
|
||||
RARCH_WARN("Libretro path not set, cannot load core-specific config file...\n");
|
||||
RARCH_WARN("Active core path not set, cannot load core-specific config file...\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -3231,6 +3231,12 @@ bool config_replace(char *path)
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *config_get_active_core_path(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
return settings->path.libretro;
|
||||
}
|
||||
|
||||
const char *config_get_active_path(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
@ -598,6 +598,8 @@ void config_free(void);
|
||||
|
||||
const char *config_get_active_path(void);
|
||||
|
||||
const char *config_get_active_core_path(void);
|
||||
|
||||
void config_free_state(void);
|
||||
|
||||
settings_t *config_get_ptr(void);
|
||||
|
@ -322,7 +322,7 @@ static void load_dynamic_core(void)
|
||||
retroarch_fail(1, "init_libretro_sym()");
|
||||
}
|
||||
|
||||
if (!*settings->path.libretro)
|
||||
if (string_is_empty(settings->path.libretro))
|
||||
{
|
||||
RARCH_ERR("RetroArch is built for dynamic libretro cores, but "
|
||||
"libretro_path is not set. Cannot continue.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user