2020-11-16 22:59:03 +00:00
|
|
|
#ifndef _RETROARCH_FWD_DECLS_H
|
|
|
|
#define _RETROARCH_FWD_DECLS_H
|
|
|
|
|
2021-04-06 18:07:06 +00:00
|
|
|
static void retroarch_fail(struct rarch_state *p_rarch,
|
|
|
|
int error_code, const char *error);
|
2020-11-16 22:59:03 +00:00
|
|
|
static void ui_companion_driver_toggle(
|
|
|
|
struct rarch_state *p_rarch,
|
2021-04-10 11:03:53 +00:00
|
|
|
bool desktop_menu_enable,
|
|
|
|
bool ui_companion_toggle,
|
2020-11-16 22:59:03 +00:00
|
|
|
bool force);
|
|
|
|
|
|
|
|
#ifdef HAVE_LIBNX
|
|
|
|
void libnx_apply_overclock(void);
|
|
|
|
#endif
|
|
|
|
|
2021-03-14 01:11:36 +00:00
|
|
|
static void retroarch_deinit_drivers(struct rarch_state *p_rarch,
|
|
|
|
struct retro_callbacks *cbs);
|
2020-11-16 22:59:03 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_RUNAHEAD
|
|
|
|
#if defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB)
|
2021-11-05 21:03:13 +00:00
|
|
|
static bool secondary_core_create(runloop_state_t *runloop_st, settings_t *settings);
|
2021-10-18 13:23:22 +00:00
|
|
|
static void secondary_core_destroy(runloop_state_t *runloop_st);
|
2021-11-05 21:03:13 +00:00
|
|
|
static bool secondary_core_ensure_exists(
|
2021-10-18 13:23:22 +00:00
|
|
|
runloop_state_t *runloop_st, settings_t *settings);
|
2020-11-16 22:59:03 +00:00
|
|
|
#endif
|
|
|
|
static int16_t input_state_get_last(unsigned port,
|
|
|
|
unsigned device, unsigned index, unsigned id);
|
|
|
|
#endif
|
|
|
|
static void retro_frame_null(const void *data, unsigned width,
|
|
|
|
unsigned height, size_t pitch);
|
|
|
|
static void retro_run_null(void);
|
|
|
|
static void retro_input_poll_null(void);
|
2021-10-14 20:18:14 +00:00
|
|
|
static void runloop_apply_fastmotion_override(runloop_state_t *p_runloop, settings_t *settings);
|
2020-11-16 22:59:03 +00:00
|
|
|
|
|
|
|
static void uninit_libretro_symbols(
|
|
|
|
struct rarch_state *p_rarch,
|
|
|
|
struct retro_core_t *current_core);
|
|
|
|
static bool init_libretro_symbols(
|
|
|
|
struct rarch_state *p_rarch,
|
2021-10-18 13:23:22 +00:00
|
|
|
runloop_state_t *runloop_st,
|
2020-11-16 22:59:03 +00:00
|
|
|
enum rarch_core_type type,
|
|
|
|
struct retro_core_t *current_core);
|
|
|
|
|
|
|
|
static void ui_companion_driver_deinit(struct rarch_state *p_rarch);
|
2021-11-03 20:22:37 +00:00
|
|
|
static void ui_companion_driver_init_first(struct rarch_state *p_rarch);
|
2020-11-16 22:59:03 +00:00
|
|
|
|
|
|
|
static void driver_uninit(struct rarch_state *p_rarch, int flags);
|
2021-10-13 13:15:05 +00:00
|
|
|
|
2021-04-06 17:31:04 +00:00
|
|
|
static void drivers_init(struct rarch_state *p_rarch,
|
|
|
|
settings_t *settings,
|
|
|
|
int flags,
|
2021-04-05 21:37:42 +00:00
|
|
|
bool verbosity_enabled);
|
2020-11-16 22:59:03 +00:00
|
|
|
|
2021-10-14 19:35:38 +00:00
|
|
|
static bool core_load(unsigned poll_type_behavior);
|
|
|
|
static bool core_unload_game(void);
|
2020-11-16 22:59:03 +00:00
|
|
|
|
|
|
|
static void driver_camera_stop(void);
|
|
|
|
static bool driver_camera_start(void);
|
|
|
|
|
|
|
|
static const void *find_driver_nonempty(
|
|
|
|
const char *label, int i,
|
|
|
|
char *s, size_t len);
|
|
|
|
|
|
|
|
#endif
|