mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 10:20:21 +00:00
Move directories to dirs.c
This commit is contained in:
parent
346c1d356a
commit
eb90fe9d83
16
dirs.c
16
dirs.c
@ -45,7 +45,8 @@ static struct rarch_dir_list dir_shader_list;
|
||||
static char dir_osk_overlay[PATH_MAX_LENGTH] = {0};
|
||||
static char dir_system[PATH_MAX_LENGTH] = {0};
|
||||
static char dir_savefile[PATH_MAX_LENGTH] = {0};
|
||||
char current_savefile_dir[PATH_MAX_LENGTH] = {0};
|
||||
static char current_savefile_dir[PATH_MAX_LENGTH] = {0};
|
||||
static char current_savestate_dir[PATH_MAX_LENGTH] = {0};
|
||||
static char dir_savestate[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
static bool shader_dir_init(struct rarch_dir_list *dir_list)
|
||||
@ -278,6 +279,11 @@ const char *dir_get_current_savefile(void)
|
||||
return current_savefile_dir;
|
||||
}
|
||||
|
||||
const char *dir_get_current_savestate(void)
|
||||
{
|
||||
return current_savestate_dir;
|
||||
}
|
||||
|
||||
const char *dir_get_osk_overlay(void)
|
||||
{
|
||||
return dir_osk_overlay;
|
||||
@ -300,6 +306,14 @@ const char *dir_get_savestate(void)
|
||||
|
||||
/* set functions */
|
||||
|
||||
void dir_set_current_savefile(const char *path)
|
||||
{
|
||||
}
|
||||
|
||||
void dir_set_current_savestate(const char *path)
|
||||
{
|
||||
}
|
||||
|
||||
void dir_set_osk_overlay(const char *path)
|
||||
{
|
||||
strlcpy(dir_osk_overlay, path,
|
||||
|
6
dirs.h
6
dirs.h
@ -89,8 +89,14 @@ const char *dir_get_system(void);
|
||||
|
||||
const char *dir_get_current_savefile(void);
|
||||
|
||||
const char *dir_get_current_savestate(void);
|
||||
|
||||
/* set functions */
|
||||
|
||||
void dir_set_current_savefile(const char *path);
|
||||
|
||||
void dir_set_current_savestate(const char *path);
|
||||
|
||||
void dir_set_osk_overlay(const char *path);
|
||||
|
||||
void dir_set_savefile(const char *path);
|
||||
|
16
paths.c
16
paths.c
@ -48,21 +48,15 @@
|
||||
|
||||
#define MENU_VALUE_NO_CORE 0x7d5472cbU
|
||||
|
||||
extern char current_savefile_dir[PATH_MAX_LENGTH];
|
||||
|
||||
static struct string_list *subsystem_fullpaths = NULL;
|
||||
|
||||
char subsystem_path[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
static char subsystem_path[PATH_MAX_LENGTH] = {0};
|
||||
static char path_default_shader_preset[PATH_MAX_LENGTH] = {0};
|
||||
static char path_main_basename[PATH_MAX_LENGTH] = {0}
|
||||
;
|
||||
static char path_main_basename[PATH_MAX_LENGTH] = {0};
|
||||
static char path_content[PATH_MAX_LENGTH] = {0};
|
||||
static char current_savestate_dir[PATH_MAX_LENGTH] = {0};
|
||||
static char path_libretro[PATH_MAX_LENGTH] = {0};
|
||||
static char path_config_file[PATH_MAX_LENGTH] = {0};
|
||||
static char path_config_append_file[PATH_MAX_LENGTH] = {0};
|
||||
/* Config file associated with per-core configs. */
|
||||
static char path_core_options_file[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
void path_set_redirect(void)
|
||||
@ -210,10 +204,8 @@ void path_set_redirect(void)
|
||||
}
|
||||
}
|
||||
|
||||
strlcpy(current_savefile_dir, new_savefile_dir,
|
||||
sizeof(current_savefile_dir));
|
||||
strlcpy(current_savestate_dir, new_savestate_dir,
|
||||
sizeof(current_savestate_dir));
|
||||
dir_set_current_savefile(new_savefile_dir);
|
||||
dir_set_current_savestate(new_savestate_dir);
|
||||
}
|
||||
|
||||
void path_set_basename(const char *path)
|
||||
|
Loading…
Reference in New Issue
Block a user