Skip to content

Commit

Permalink
Modify RARCH_CTL_SET_PATHS_REDIRECT
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Jan 27, 2016
1 parent 3728240 commit 8fe012a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions command_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,7 @@ static bool event_init_core(void *data)
config_load_remap();

/* per-core saves: reset redirection paths */
if((settings->sort_savestates_enable || settings->sort_savefiles_enable)
&& !content_ctl(CONTENT_CTL_DOES_NOT_NEED_CONTENT, NULL))
if((settings->sort_savestates_enable || settings->sort_savefiles_enable))
rarch_ctl(RARCH_CTL_SET_PATHS_REDIRECT, NULL);

if (!core_ctl(CORE_CTL_RETRO_INIT, NULL))
Expand Down
2 changes: 2 additions & 0 deletions retroarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,8 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
runloop_ctl(RUNLOOP_CTL_MSG_QUEUE_INIT, NULL);
return true;
case RARCH_CTL_SET_PATHS_REDIRECT:
if (content_ctl(CONTENT_CTL_DOES_NOT_NEED_CONTENT, NULL))
return false;
set_paths_redirect(global->name.base);
break;
case RARCH_CTL_SET_ERROR_ON_INIT:
Expand Down

0 comments on commit 8fe012a

Please sign in to comment.