RetroArch/core.h

80 lines
2.2 KiB
C
Raw Normal View History

/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
2016-01-10 03:06:50 +00:00
* Copyright (C) 2011-2016 - Daniel De Matteis
2015-01-07 16:46:50 +00:00
* Copyright (C) 2012-2015 - Michael Lelli
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
2016-05-08 03:29:10 +00:00
#ifndef _LIBRETRO_CORE_IMPL_H
#define _LIBRETRO_CORE_IMPL_H
2016-01-27 02:08:49 +00:00
#include <boolean.h>
#include <libretro.h>
2016-09-06 04:11:44 +00:00
#include <retro_common_api.h>
2016-01-27 02:08:49 +00:00
#include "retroarch_types.h"
RETRO_BEGIN_DECLS
#ifdef HAVE_NETWORKING
bool core_set_netplay_callbacks(void);
bool core_unset_netplay_callbacks(void);
#endif
2019-07-16 08:10:49 +00:00
bool core_set_poll_type(unsigned type);
2016-05-07 23:33:57 +00:00
/* Runs the core for one frame. */
2022-11-21 18:11:55 +00:00
void core_run(void);
2016-05-07 23:33:57 +00:00
2022-11-21 18:11:55 +00:00
void core_reset(void);
2016-05-07 23:33:57 +00:00
size_t core_serialize_size(void);
size_t core_serialize_size_special(void);
2016-05-07 23:33:57 +00:00
uint64_t core_serialization_quirks(void);
2016-05-07 23:33:57 +00:00
bool core_serialize(retro_ctx_serialize_info_t *info);
bool core_serialize_special(retro_ctx_serialize_info_t *info);
2016-05-07 23:33:57 +00:00
bool core_unserialize(retro_ctx_serialize_info_t *info);
bool core_unserialize_special(retro_ctx_serialize_info_t *info);
2016-05-07 23:33:57 +00:00
bool core_set_cheat(retro_ctx_cheat_info_t *info);
bool core_reset_cheat(void);
bool core_get_memory(retro_ctx_memory_info_t *info);
/* Get system A/V information. */
bool core_get_system_info(struct retro_system_info *system);
bool core_load_game(retro_ctx_load_content_info_t *load_info);
bool core_set_controller_port_device(retro_ctx_controller_info_t *pad);
bool core_has_set_input_descriptor(void);
/**
* core_set_default_callbacks:
* @data : pointer to retro_callbacks object
*
* Binds the libretro callbacks to default callback functions.
**/
bool core_set_default_callbacks(void *data);
RETRO_END_DECLS
#endif