2014-09-23 01:03:56 +00:00
|
|
|
/* 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
|
2014-09-23 01:03:56 +00:00
|
|
|
*
|
|
|
|
* 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
|
2014-09-23 01:03:56 +00:00
|
|
|
|
2016-01-27 02:08:49 +00:00
|
|
|
#include <boolean.h>
|
2016-05-10 17:03:53 +00:00
|
|
|
#include <libretro.h>
|
2016-09-06 04:11:44 +00:00
|
|
|
|
2016-06-03 01:22:35 +00:00
|
|
|
#include <retro_common_api.h>
|
2016-01-27 02:08:49 +00:00
|
|
|
|
2021-09-30 21:22:50 +00:00
|
|
|
#include "retroarch_types.h"
|
2014-09-23 01:03:56 +00:00
|
|
|
|
2016-06-03 01:22:35 +00:00
|
|
|
RETRO_BEGIN_DECLS
|
|
|
|
|
2016-12-18 04:08:59 +00:00
|
|
|
#ifdef HAVE_NETWORKING
|
2016-09-29 02:45:31 +00:00
|
|
|
bool core_set_netplay_callbacks(void);
|
|
|
|
|
2016-12-18 04:08:59 +00:00
|
|
|
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
|
|
|
|
2023-06-16 15:20:27 +00:00
|
|
|
size_t core_serialize_size(void);
|
|
|
|
size_t core_serialize_size_special(void);
|
2016-05-07 23:33:57 +00:00
|
|
|
|
2016-09-30 19:37:02 +00:00
|
|
|
uint64_t core_serialization_quirks(void);
|
2016-09-30 18:16:48 +00:00
|
|
|
|
2016-05-07 23:33:57 +00:00
|
|
|
bool core_serialize(retro_ctx_serialize_info_t *info);
|
2022-08-13 00:24:28 +00:00
|
|
|
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);
|
2022-08-13 00:24:28 +00:00
|
|
|
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);
|
|
|
|
|
2021-11-05 03:42:03 +00:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2016-06-03 01:22:35 +00:00
|
|
|
RETRO_END_DECLS
|
2014-11-29 20:18:45 +00:00
|
|
|
|
2014-09-23 01:03:56 +00:00
|
|
|
#endif
|