Use dir_is_savefile_empty/dir_is_savestate_empty

This commit is contained in:
twinaphex 2016-09-17 15:01:32 +02:00
parent 8c451ac71f
commit b775ee303c

View File

@ -1587,7 +1587,6 @@ static void menu_content_environment_get(int *argc, char *argv[],
{
char *fullpath = NULL;
struct rarch_main_wrap *wrap_args = (struct rarch_main_wrap*)params_data;
global_t *global = global_get_ptr();
if (!wrap_args)
return;
@ -1608,9 +1607,9 @@ static void menu_content_environment_get(int *argc, char *argv[],
if (!path_is_config_empty())
wrap_args->config_path = path_get_config();
if (!string_is_empty(global->dir.savefile))
if (!dir_is_savefile_empty())
wrap_args->sram_path = dir_get_savefile();
if (!string_is_empty(global->dir.savestate))
if (!dir_is_savestate_empty())
wrap_args->state_path = dir_get_savestate();
if (fullpath && *fullpath)
wrap_args->content_path = fullpath;