Create dir_is_savefile_empty/dir_is_savestate_empty

This commit is contained in:
twinaphex 2016-09-17 14:59:51 +02:00
parent 413d14ad49
commit 8c451ac71f
2 changed files with 22 additions and 0 deletions

18
dirs.c
View File

@ -29,6 +29,24 @@
#include "runloop.h"
bool dir_is_savefile_empty(void)
{
global_t *global = global_get_ptr();
if (!global)
return false;
return string_is_empty(global->dir.savefile);
}
bool dir_is_savestate_empty(void)
{
global_t *global = global_get_ptr();
if (!global)
return false;
return string_is_empty(global->dir.savestate);
}
void dir_clear_savefile(void)
{
global_t *global = global_get_ptr();

4
dirs.h
View File

@ -21,6 +21,10 @@
RETRO_BEGIN_DECLS
bool dir_is_savefile_empty(void);
bool dir_is_savestate_empty(void);
void dir_clear_savefile(void);
void dir_clear_savestate(void);