RetroArch
fixup.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2015-2018 - Andre Leiradella
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef __RARCH_CHEEVOS_FIXUP_H
17 #define __RARCH_CHEEVOS_FIXUP_H
18 
19 #include <stdint.h>
20 #include <boolean.h>
21 
22 #include <retro_common_api.h>
23 
25 
26 typedef struct
27 {
28  unsigned address;
29  const uint8_t* location;
31 
32 typedef struct
33 {
35  unsigned capacity, count;
36  bool dirty;
38 
41 
42 const uint8_t* cheevos_fixup_find(cheevos_fixups_t* fixups, unsigned address, int console);
43 
44 const uint8_t* cheevos_patch_address(unsigned address, int console);
45 
47 
48 #endif
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
const uint8_t * location
Definition: fixup.h:29
const uint8_t * cheevos_fixup_find(cheevos_fixups_t *fixups, unsigned address, int console)
Definition: fixup.c:80
GLuint address
Definition: glext.h:10300
void cheevos_fixup_init(cheevos_fixups_t *fixups)
Definition: fixup.c:67
Definition: fixup.h:26
unsigned address
Definition: fixup.h:28
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
const uint8_t * cheevos_patch_address(unsigned address, int console)
Definition: fixup.c:123
unsigned count
Definition: fixup.h:35
cheevos_fixup_t * elements
Definition: fixup.h:34
Definition: fixup.h:32
bool dirty
Definition: fixup.h:36
unsigned char uint8_t
Definition: stdint.h:124
void cheevos_fixup_destroy(cheevos_fixups_t *fixups)
Definition: fixup.c:74