mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-03 13:51:02 +00:00
Create path_clear_all
This commit is contained in:
parent
f4e1ffeabf
commit
471347689d
@ -247,7 +247,7 @@ bool core_option_manager_flush(core_option_manager_t *opt)
|
||||
* successfully saved to disk, otherwise false (0).
|
||||
**/
|
||||
bool core_option_manager_flush_game_specific(
|
||||
core_option_manager_t *opt, char* path)
|
||||
core_option_manager_t *opt, const char* path)
|
||||
{
|
||||
size_t i;
|
||||
for (i = 0; i < opt->size; i++)
|
||||
|
@ -90,7 +90,7 @@ bool core_option_manager_flush(core_option_manager_t *opt);
|
||||
* successfully saved to disk, otherwise false (0).
|
||||
**/
|
||||
bool core_option_manager_flush_game_specific(
|
||||
core_option_manager_t *opt, char* path);
|
||||
core_option_manager_t *opt, const char* path);
|
||||
|
||||
/**
|
||||
* core_option_manager_free:
|
||||
|
11
paths.c
11
paths.c
@ -513,6 +513,17 @@ const char *path_get_core_options(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void path_clear_all(void)
|
||||
{
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
path_clear_core();
|
||||
path_clear_core_options();
|
||||
|
||||
if (global)
|
||||
memset(&global->path, 0, sizeof(struct rarch_path));
|
||||
}
|
||||
|
||||
enum rarch_content_type path_is_media_type(const char *path)
|
||||
{
|
||||
char ext_lower[PATH_MAX_LENGTH] = {0};
|
||||
|
2
paths.h
2
paths.h
@ -61,6 +61,8 @@ void path_clear_core(void);
|
||||
|
||||
void path_clear_core_options(void);
|
||||
|
||||
void path_clear_all(void);
|
||||
|
||||
enum rarch_content_type path_is_media_type(const char *path);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user