mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 16:13:40 +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;
|
char *fullpath = NULL;
|
||||||
struct rarch_main_wrap *wrap_args = (struct rarch_main_wrap*)params_data;
|
struct rarch_main_wrap *wrap_args = (struct rarch_main_wrap*)params_data;
|
||||||
global_t *global = global_get_ptr();
|
|
||||||
|
|
||||||
if (!wrap_args)
|
if (!wrap_args)
|
||||||
return;
|
return;
|
||||||
@ -1608,9 +1607,9 @@ static void menu_content_environment_get(int *argc, char *argv[],
|
|||||||
|
|
||||||
if (!path_is_config_empty())
|
if (!path_is_config_empty())
|
||||||
wrap_args->config_path = path_get_config();
|
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();
|
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();
|
wrap_args->state_path = dir_get_savestate();
|
||||||
if (fullpath && *fullpath)
|
if (fullpath && *fullpath)
|
||||||
wrap_args->content_path = fullpath;
|
wrap_args->content_path = fullpath;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user