Move event_load_files to task_save.c

This commit is contained in:
twinaphex 2016-09-19 04:05:44 +02:00
parent 5d1da68ceb
commit f91a8eacdb
3 changed files with 18 additions and 16 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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