RetroArch
Functions | Variables
core_impl.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <boolean.h>
#include <lists/string_list.h>
#include <string/stdstring.h>
#include <libretro.h>
#include "core.h"
#include "content.h"
#include "dynamic.h"
#include "msg_hash.h"
#include "managers/state_manager.h"
#include "verbosity.h"
#include "gfx/video_driver.h"
#include "audio/audio_driver.h"
#include "tasks/tasks_internal.h"
Include dependency graph for core_impl.c:

Functions

static void retro_run_null (void)
 
static void retro_frame_null (const void *data, unsigned width, unsigned height, size_t pitch)
 
static void retro_input_poll_null (void)
 
static void core_input_state_poll_maybe (void)
 
static int16_t core_input_state_poll (unsigned port, unsigned device, unsigned idx, unsigned id)
 
void core_set_input_state (retro_ctx_input_state_info_t *info)
 
static bool core_init_libretro_cbs (struct retro_callbacks *cbs)
 
bool core_set_default_callbacks (struct retro_callbacks *cbs)
 
bool core_deinit (void *data)
 
bool core_uninit_libretro_callbacks (void)
 
bool core_set_rewind_callbacks (void)
 
bool core_set_cheat (retro_ctx_cheat_info_t *info)
 
bool core_reset_cheat (void)
 
bool core_api_version (retro_ctx_api_info_t *api)
 
bool core_set_poll_type (unsigned *type)
 
void core_uninit_symbols (void)
 
bool core_init_symbols (enum rarch_core_type *type)
 
bool core_set_controller_port_device (retro_ctx_controller_info_t *pad)
 
bool core_get_memory (retro_ctx_memory_info_t *info)
 
bool core_load_game (retro_ctx_load_content_info_t *load_info)
 
bool core_get_system_info (struct retro_system_info *system)
 
bool core_unserialize (retro_ctx_serialize_info_t *info)
 
bool core_serialize (retro_ctx_serialize_info_t *info)
 
bool core_serialize_size (retro_ctx_size_info_t *info)
 
uint64_t core_serialization_quirks (void)
 
void core_set_serialization_quirks (uint64_t quirks)
 
bool core_set_environment (retro_ctx_environ_info_t *info)
 
bool core_get_system_av_info (struct retro_system_av_info *av_info)
 
bool core_reset (void)
 
bool core_init (void)
 
bool core_unload (void)
 
bool core_unload_game (void)
 
bool core_run (void)
 
bool core_run_no_input_polling (void)
 
bool core_load (unsigned poll_type_behavior)
 
bool core_verify_api_version (void)
 
bool core_get_region (retro_ctx_region_info_t *info)
 
bool core_has_set_input_descriptor (void)
 
void core_set_input_descriptors (void)
 
void core_unset_input_descriptors (void)
 
bool core_is_inited (void)
 
bool core_is_symbols_inited (void)
 
bool core_is_game_loaded (void)
 

Variables

struct retro_callbacks retro_ctx
 
struct retro_core_t current_core
 

Function Documentation

◆ core_api_version()

bool core_api_version ( retro_ctx_api_info_t api)
Here is the caller graph for this function:

◆ core_deinit()

bool core_deinit ( void data)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_get_memory()

bool core_get_memory ( retro_ctx_memory_info_t info)
Here is the caller graph for this function:

◆ core_get_region()

bool core_get_region ( retro_ctx_region_info_t info)
Here is the caller graph for this function:

◆ core_get_system_av_info()

bool core_get_system_av_info ( struct retro_system_av_info av_info)
Here is the caller graph for this function:

◆ core_get_system_info()

bool core_get_system_info ( struct retro_system_info system)
Here is the caller graph for this function:

◆ core_has_set_input_descriptor()

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

◆ core_init()

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

◆ core_init_libretro_cbs()

static bool core_init_libretro_cbs ( struct retro_callbacks cbs)
static

core_init_libretro_cbs: : pointer to retro_callbacks object

Initializes libretro callbacks, and binds the libretro callbacks to default callback functions.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_init_symbols()

bool core_init_symbols ( enum rarch_core_type type)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_input_state_poll()

static int16_t core_input_state_poll ( unsigned  port,
unsigned  device,
unsigned  idx,
unsigned  id 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_input_state_poll_maybe()

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

◆ core_is_game_loaded()

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

◆ core_is_inited()

bool core_is_inited ( void  )

◆ core_is_symbols_inited()

bool core_is_symbols_inited ( void  )

◆ core_load()

bool core_load ( unsigned  poll_type_behavior)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_load_game()

bool core_load_game ( retro_ctx_load_content_info_t load_info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_reset()

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

◆ core_reset_cheat()

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

◆ core_run()

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

◆ core_run_no_input_polling()

bool core_run_no_input_polling ( void  )

◆ core_serialization_quirks()

uint64_t core_serialization_quirks ( void  )
Here is the caller graph for this function:

◆ core_serialize()

bool core_serialize ( retro_ctx_serialize_info_t info)
Here is the caller graph for this function:

◆ core_serialize_size()

bool core_serialize_size ( retro_ctx_size_info_t info)
Here is the caller graph for this function:

◆ core_set_cheat()

bool core_set_cheat ( retro_ctx_cheat_info_t info)
Here is the caller graph for this function:

◆ core_set_controller_port_device()

bool core_set_controller_port_device ( retro_ctx_controller_info_t pad)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_set_default_callbacks()

bool core_set_default_callbacks ( struct retro_callbacks cbs)

core_set_default_callbacks: : pointer to retro_callbacks object

Binds the libretro callbacks to default callback functions.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_set_environment()

bool core_set_environment ( retro_ctx_environ_info_t info)
Here is the caller graph for this function:

◆ core_set_input_descriptors()

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

◆ core_set_input_state()

void core_set_input_state ( retro_ctx_input_state_info_t info)

◆ core_set_poll_type()

bool core_set_poll_type ( unsigned *  type)
Here is the caller graph for this function:

◆ core_set_rewind_callbacks()

bool core_set_rewind_callbacks ( void  )

core_set_rewind_callbacks:

Sets the audio sampling callbacks based on whether or not rewinding is currently activated.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_set_serialization_quirks()

void core_set_serialization_quirks ( uint64_t  quirks)
Here is the caller graph for this function:

◆ core_uninit_libretro_callbacks()

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

◆ core_uninit_symbols()

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

◆ core_unload()

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

◆ core_unload_game()

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

◆ core_unserialize()

bool core_unserialize ( retro_ctx_serialize_info_t info)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ core_unset_input_descriptors()

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

◆ core_verify_api_version()

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

◆ retro_frame_null()

static void retro_frame_null ( const void data,
unsigned  width,
unsigned  height,
size_t  pitch 
)
static
Here is the caller graph for this function:

◆ retro_input_poll_null()

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

◆ retro_run_null()

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

Variable Documentation

◆ current_core

struct retro_core_t current_core

◆ retro_ctx

struct retro_callbacks retro_ctx