mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-19 01:12:33 +00:00
Add RARCH_CTL_SET_PATHS_REDIRECT
This commit is contained in:
parent
76b3079bc8
commit
52774b0dee
@ -605,7 +605,7 @@ static bool event_init_core(void)
|
||||
|
||||
/* per-core saves: reset redirection paths */
|
||||
if((settings->sort_savestates_enable || settings->sort_savefiles_enable) && !global->inited.core.no_content)
|
||||
set_paths_redirect(global->name.base);
|
||||
rarch_ctl(RARCH_CTL_SET_PATHS_REDIRECT, NULL);
|
||||
|
||||
rarch_ctl(RARCH_CTL_VERIFY_API_VERSION, NULL);
|
||||
core.retro_init();
|
||||
|
@ -350,7 +350,7 @@ const char *rarch_get_current_savefile_dir(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void set_paths_redirect(const char *path)
|
||||
static void set_paths_redirect(const char *path)
|
||||
{
|
||||
bool check_global_library_name_hash = false;
|
||||
global_t *global = global_get_ptr();
|
||||
@ -1345,6 +1345,9 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
|
||||
switch(state)
|
||||
{
|
||||
case RARCH_CTL_SET_PATHS_REDIRECT:
|
||||
set_paths_redirect(global->name.base);
|
||||
break;
|
||||
case RARCH_CTL_SET_ERROR_ON_INIT:
|
||||
rarch_error_on_init = true;
|
||||
break;
|
||||
|
@ -92,6 +92,8 @@ enum rarch_ctl_state
|
||||
|
||||
RARCH_CTL_FILL_PATHNAMES,
|
||||
|
||||
RARCH_CTL_SET_PATHS_REDIRECT,
|
||||
|
||||
RARCH_CTL_SET_FORCE_FULLSCREEN,
|
||||
|
||||
RARCH_CTL_UNSET_FORCE_FULLSCREEN,
|
||||
@ -217,8 +219,6 @@ void rarch_init_system_av_info(void);
|
||||
|
||||
void rarch_set_paths(const char *path);
|
||||
|
||||
void set_paths_redirect(const char *path);
|
||||
|
||||
int rarch_info_get_capabilities(enum rarch_capabilities type, char *s, size_t len);
|
||||
|
||||
enum rarch_content_type rarch_path_is_media_type(const char *path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user