mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Use dir_is_savefile_empty/dir_is_savestate_empty
This commit is contained in:
parent
8c451ac71f
commit
b775ee303c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user