RetroArch
|
#include <stdint.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <compat/strl.h>
#include <retro_assert.h>
#include <lists/string_list.h>
#include <streams/interface_stream.h>
#include <streams/file_stream.h>
#include <rthreads/rthreads.h>
#include <file/file_path.h>
#include <retro_miscellaneous.h>
#include <string/stdstring.h>
#include "../core.h"
#include "../file_path_special.h"
#include "../configuration.h"
#include "../gfx/video_driver.h"
#include "../msg_hash.h"
#include "../retroarch.h"
#include "../verbosity.h"
#include "tasks_internal.h"
#include "../managers/cheat_manager.h"
Classes | |
struct | ram_type |
struct | save_state_buf |
struct | sram_block |
struct | save_task_state_t |
Macros | |
#define | SAVE_STATE_CHUNK 4096 |
Typedefs | |
typedef save_task_state_t | load_task_data_t |
Variables | |
static bool | save_state_in_background = false |
static struct string_list * | task_save_files = NULL |
static struct save_state_buf | undo_save_buf |
static struct save_state_buf | undo_load_buf |
#define SAVE_STATE_CHUNK 4096 |
typedef save_task_state_t load_task_data_t |
autosave_lock:
Lock autosave.
autosave_unlock:
Unlocks autosave.
|
static |
|
static |
content_load_and_save_state_cb: : path that state will be loaded from. Load then save a state.
bool content_load_ram_file | ( | unsigned | slot | ) |
content_load_ram_file: : path of RAM state that will be loaded from. : type of memory
Load a RAM state from disk to memory.
content_load_state: : path that state will be loaded from. : If true, the state will be loaded into undo_save_buf. Load a state from disk to memory.
Returns: true if successful, false otherwise.
content_load_state_cb: : path that state will be loaded from. Load a state from disk to memory.
bool content_save_ram_file | ( | unsigned | slot | ) |
content_save_ram_file: : path of RAM state that shall be written to. : type of memory
Save a RAM state from memory to disk.
content_save_state: : path of saved state that shall be written to. : If false, saves the state onto undo_load_buf. Save a state from memory to disk.
Returns: true if successful, false otherwise.
undo_load_state: Revert to the state before a state was loaded.
Returns: true if successful, false otherwise.
undo_save_state: Reverts the last save operation
Returns: true if successful, false otherwise.
dump_to_file_desperate: : pointer to data buffer. : size of . : type of file to be saved.
Attempt to save valuable RAM data somewhere.
save_state_cb:
Called after the save state is done. Takes a screenshot if needed.
|
static |
task_load_handler: : the task being worked on
Load a chunk of data from the save state file.
|
static |
task_load_handler_finished: : the task to finish : the state associated with this task
Close the loaded state file and finish the task.
|
static |
task_push_load_and_save_state: : file path of the save state : the save state data to write : the total size of the save state : If true, the state will be loaded into undo_save_buf.
Create a new task to load current state first into a backup buffer (for undo) and then save the content state.
|
static |
task_push_save_state: : file path of the save state : the save state data to write : the total size of the save state
Create a new task to save the content state.
task_push_undo_save_state: : file path of the save state : the save state data to write : the total size of the save state
Create a new task to undo the last save of the content state.
|
static |
task_save_handler: : the task being worked on
Write a chunk of data to the save state file.
|
static |
task_save_handler_finished: : the task to finish : the state associated with this task
Close the save state file and finish the task.
|
static |
|
static |
|
static |