mirror of
https://github.com/libretro/RetroArch
synced 2025-02-01 09:32:58 +00:00
Create dir_is_savefile_empty/dir_is_savestate_empty
This commit is contained in:
parent
413d14ad49
commit
8c451ac71f
18
dirs.c
18
dirs.c
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user