mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-23 11:18:25 +00:00
d9393d5872
implemented the RETRO_ENVIRONMENT_SET_MEMORY_MAPS callback
66 lines
1.5 KiB
C
66 lines
1.5 KiB
C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
|
*
|
|
* 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/>.
|
|
*/
|
|
|
|
#ifndef __RARCH_SYSTEM_H
|
|
#define __RARCH_SYSTEM_H
|
|
|
|
#include <retro_miscellaneous.h>
|
|
#include <libretro.h>
|
|
|
|
#include "driver.h"
|
|
|
|
#ifndef MAX_USERS
|
|
#define MAX_USERS 16
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct rarch_system_info
|
|
{
|
|
struct retro_system_info info;
|
|
|
|
unsigned rotation;
|
|
unsigned performance_level;
|
|
|
|
const char *input_desc_btn[MAX_USERS][RARCH_FIRST_META_KEY];
|
|
char valid_extensions[PATH_MAX_LENGTH];
|
|
|
|
struct retro_disk_control_callback disk_control_cb;
|
|
struct retro_location_callback location_cb;
|
|
|
|
|
|
struct
|
|
{
|
|
struct retro_subsystem_info *data;
|
|
unsigned size;
|
|
} subsystem;
|
|
|
|
struct
|
|
{
|
|
struct retro_controller_info *data;
|
|
unsigned size;
|
|
} ports;
|
|
|
|
struct retro_memory_map mmaps;
|
|
} rarch_system_info_t;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|