This commit is contained in:
twinaphex 2016-09-29 08:34:08 +02:00
parent 329f6ad612
commit ed2b89db27
3 changed files with 5 additions and 10 deletions

11
paths.c
View File

@ -482,6 +482,10 @@ const char *path_get(enum rarch_path_type type)
{
switch (type)
{
case RARCH_PATH_CORE_OPTIONS:
if (!path_is_core_options_empty())
return path_core_options_file;
break;
case RARCH_PATH_SUBSYSTEM:
return subsystem_path;
case RARCH_PATH_CONFIG:
@ -625,13 +629,6 @@ void path_clear_core_options(void)
const char *path_get_core_options(void)
{
if (!path_is_core_options_empty())
return path_core_options_file;
return NULL;
}
/* Append config file path */

View File

@ -88,8 +88,6 @@ const char *path_get_current_savefile_dir(void);
const char *path_get_basename(void);
const char *path_get_core_options(void);
bool path_get_default_shader_preset(char **preset);
/* clear functions */

View File

@ -971,7 +971,7 @@ bool runloop_ctl(enum runloop_ctl_state state, void *data)
if(!path_is_core_options_empty())
{
core_option_manager_flush_game_specific(runloop_core_options,
path_get_core_options());
path_get(RARCH_PATH_CORE_OPTIONS));
path_clear_core_options();
}
else