diff --git a/configuration.c b/configuration.c index 5764ea0c66..d109d9a605 100644 --- a/configuration.c +++ b/configuration.c @@ -3896,7 +3896,7 @@ bool config_load_override(void *data) /* per-core overrides */ /* Create a new config file from core_path */ - if (config_file_exists(core_path)) + if (path_is_valid(core_path)) { RARCH_LOG("[Overrides]: Core-specific overrides found at \"%s\".\n", core_path); @@ -3910,7 +3910,7 @@ bool config_load_override(void *data) { /* per-content-dir overrides */ /* Create a new config file from content_path */ - if (config_file_exists(content_path)) + if (path_is_valid(content_path)) { char tmp_path[PATH_MAX_LENGTH + 1]; @@ -3937,7 +3937,7 @@ bool config_load_override(void *data) /* per-game overrides */ /* Create a new config file from game_path */ - if (config_file_exists(game_path)) + if (path_is_valid(game_path)) { char tmp_path[PATH_MAX_LENGTH + 1]; diff --git a/libretro-common/file/config_file.c b/libretro-common/file/config_file.c index 0101833c0e..3e0acf9451 100644 --- a/libretro-common/file/config_file.c +++ b/libretro-common/file/config_file.c @@ -1513,14 +1513,3 @@ bool config_get_entry_list_next(struct config_file_entry *entry) entry->next = next->next; return true; } - -bool config_file_exists(const char *path) -{ - config_file_t conf; - config_file_initialize(&conf); - if (config_file_load_internal(&conf, path, 0, NULL) == 1) - return false; - - config_file_deinitialize(&conf); - return true; -} diff --git a/libretro-common/include/file/config_file.h b/libretro-common/include/file/config_file.h index 7dfcf4aaa7..4d2d232f92 100644 --- a/libretro-common/include/file/config_file.h +++ b/libretro-common/include/file/config_file.h @@ -325,8 +325,6 @@ bool config_file_write(config_file_t *conf, const char *path, bool val); **/ void config_file_dump(config_file_t *conf, FILE *file, bool val); -bool config_file_exists(const char *path); - RETRO_END_DECLS #endif