mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Move event_load_files to task_save.c
This commit is contained in:
parent
5d1da68ceb
commit
f91a8eacdb
16
command.c
16
command.c
@ -1203,22 +1203,6 @@ static void command_event_init_cheats(void)
|
||||
/* TODO/FIXME - add some stuff here. */
|
||||
}
|
||||
|
||||
static bool event_load_save_files(void)
|
||||
{
|
||||
unsigned i;
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!global)
|
||||
return false;
|
||||
if (!global->savefiles || global->sram.load_disable)
|
||||
return false;
|
||||
|
||||
for (i = 0; i < global->savefiles->size; i++)
|
||||
content_load_ram_file(i);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void command_event_load_auto_state(void)
|
||||
{
|
||||
bool ret;
|
||||
|
@ -836,3 +836,19 @@ bool content_save_ram_file(unsigned slot)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool event_load_save_files(void)
|
||||
{
|
||||
unsigned i;
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
if (!global)
|
||||
return false;
|
||||
if (!global->savefiles || global->sram.load_disable)
|
||||
return false;
|
||||
|
||||
for (i = 0; i < global->savefiles->size; i++)
|
||||
content_load_ram_file(i);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -146,6 +146,8 @@ bool take_screenshot(void);
|
||||
bool dump_to_file_desperate(const void *data,
|
||||
size_t size, unsigned type);
|
||||
|
||||
bool event_load_save_files(void);
|
||||
|
||||
RETRO_END_DECLS
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user