RetroArch
Functions | Variables
run_ahead.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <boolean.h>
#include "dirty_input.h"
#include "mylist.h"
#include "secondary_core.h"
#include "run_ahead.h"
#include "../core.h"
#include "../dynamic.h"
#include "../audio/audio_driver.h"
#include "../gfx/video_driver.h"
#include "../configuration.h"
#include "../retroarch.h"
Include dependency graph for run_ahead.c:

Functions

static bool runahead_create (void)
 
static bool runahead_save_state (void)
 
static bool runahead_load_state (void)
 
static bool runahead_load_state_secondary (void)
 
static bool runahead_run_secondary (void)
 
static void runahead_suspend_audio (void)
 
static void runahead_resume_audio (void)
 
static void runahead_suspend_video (void)
 
static void runahead_resume_video (void)
 
static void set_fast_savestate (void)
 
static void unset_fast_savestate (void)
 
static void set_hard_disable_audio (void)
 
static void unset_hard_disable_audio (void)
 
static bool core_run_use_last_input (void)
 
static voidrunahead_save_state_alloc (void)
 
static void runahead_save_state_free (void *state)
 
static void runahead_save_state_list_init (size_t saveStateSize)
 
static void runahead_save_state_list_destroy (void)
 
static void remove_hooks (void)
 
static void unload_hook (void)
 
static void deinit_hook (void)
 
static void add_hooks (void)
 
static void runahead_clear_variables (void)
 
static uint64_t runahead_get_frame_count ()
 
static void runahead_check_for_gui (void)
 
void run_ahead (int runahead_count, bool useSecondary)
 
static void runahead_error (void)
 
void runahead_destroy (void)
 
bool want_fast_savestate (void)
 
bool get_hard_disable_audio (void)
 
static void runahead_input_poll_null (void)
 

Variables

static size_t runahead_save_state_size = 0
 
static bool runahead_save_state_size_known = false
 
static MyListrunahead_save_state_list
 
static function_t originalRetroDeinit = NULL
 
static function_t originalRetroUnload = NULL
 
struct retro_core_t current_core
 
struct retro_callbacks retro_ctx
 
static bool runahead_video_driver_is_active = true
 
static bool runahead_available = true
 
static bool runahead_secondary_core_available = true
 
static bool runahead_force_input_dirty = true
 
static uint64_t runahead_last_frame_count = 0
 
static bool request_fast_savestate
 
static bool hard_disable_audio
 

Function Documentation

◆ add_hooks()

static void add_hooks ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_run_use_last_input()

static bool core_run_use_last_input ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deinit_hook()

static void deinit_hook ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_hard_disable_audio()

bool get_hard_disable_audio ( void  )
Here is the caller graph for this function:

◆ remove_hooks()

static void remove_hooks ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run_ahead()

void run_ahead ( int  runahead_count,
bool  useSecondary 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_check_for_gui()

static void runahead_check_for_gui ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_clear_variables()

static void runahead_clear_variables ( void  )
static
Here is the caller graph for this function:

◆ runahead_create()

static bool runahead_create ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_destroy()

void runahead_destroy ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_error()

static void runahead_error ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_get_frame_count()

static uint64_t runahead_get_frame_count ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_input_poll_null()

static void runahead_input_poll_null ( void  )
static
Here is the caller graph for this function:

◆ runahead_load_state()

static bool runahead_load_state ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_load_state_secondary()

static bool runahead_load_state_secondary ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_resume_audio()

static void runahead_resume_audio ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_resume_video()

static void runahead_resume_video ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_run_secondary()

static bool runahead_run_secondary ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_save_state()

static bool runahead_save_state ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_save_state_alloc()

static void* runahead_save_state_alloc ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_save_state_free()

static void runahead_save_state_free ( void state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_save_state_list_destroy()

static void runahead_save_state_list_destroy ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_save_state_list_init()

static void runahead_save_state_list_init ( size_t  saveStateSize)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_suspend_audio()

static void runahead_suspend_audio ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ runahead_suspend_video()

static void runahead_suspend_video ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_fast_savestate()

static void set_fast_savestate ( void  )
static
Here is the caller graph for this function:

◆ set_hard_disable_audio()

static void set_hard_disable_audio ( void  )
static
Here is the caller graph for this function:

◆ unload_hook()

static void unload_hook ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unset_fast_savestate()

static void unset_fast_savestate ( void  )
static
Here is the caller graph for this function:

◆ unset_hard_disable_audio()

static void unset_hard_disable_audio ( void  )
static
Here is the caller graph for this function:

◆ want_fast_savestate()

bool want_fast_savestate ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ current_core

struct retro_core_t current_core

◆ hard_disable_audio

bool hard_disable_audio
static

◆ originalRetroDeinit

function_t originalRetroDeinit = NULL
static

◆ originalRetroUnload

function_t originalRetroUnload = NULL
static

◆ request_fast_savestate

bool request_fast_savestate
static

◆ retro_ctx

struct retro_callbacks retro_ctx

◆ runahead_available

bool runahead_available = true
static

◆ runahead_force_input_dirty

bool runahead_force_input_dirty = true
static

◆ runahead_last_frame_count

uint64_t runahead_last_frame_count = 0
static

◆ runahead_save_state_list

MyList* runahead_save_state_list
static

◆ runahead_save_state_size

size_t runahead_save_state_size = 0
static

◆ runahead_save_state_size_known

bool runahead_save_state_size_known = false
static

◆ runahead_secondary_core_available

bool runahead_secondary_core_available = true
static

◆ runahead_video_driver_is_active

bool runahead_video_driver_is_active = true
static