Move variable around

This commit is contained in:
twinaphex 2016-09-19 01:47:30 +02:00
parent de9b1dfb76
commit 147bac9800

View File

@ -58,7 +58,6 @@ void path_set_redirect(void)
uint32_t global_library_name_hash = 0; uint32_t global_library_name_hash = 0;
bool check_global_library_name_hash = false; bool check_global_library_name_hash = false;
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
settings_t *settings = config_get_ptr();
rarch_system_info_t *info = NULL; rarch_system_info_t *info = NULL;
const char *old_savefile_dir = NULL; const char *old_savefile_dir = NULL;
const char *old_savestate_dir = NULL; const char *old_savestate_dir = NULL;
@ -93,6 +92,8 @@ void path_set_redirect(void)
if (check_global_library_name_hash) if (check_global_library_name_hash)
{ {
settings_t *settings = config_get_ptr();
/* per-core saves: append the library_name to the save location */ /* per-core saves: append the library_name to the save location */
if (settings->sort_savefiles_enable if (settings->sort_savefiles_enable
&& !string_is_empty(old_savefile_dir)) && !string_is_empty(old_savefile_dir))