RetroArch
cheevos.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2015-2016 - 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_CHEEVOS_H
17 #define __RARCH_CHEEVOS_CHEEVOS_H
18 
19 #include <stdint.h>
20 #include <stdlib.h>
21 
22 #include <boolean.h>
23 
24 #include "../verbosity.h"
25 
26 #include <retro_common_api.h>
27 
29 
30 typedef struct cheevos_ctx_desc
31 {
32  unsigned idx;
33  char *s;
34  size_t len;
36 
37 enum
38 {
41 };
42 
43 bool cheevos_load(const void *data);
44 
45 void cheevos_reset_game(void);
46 
47 void cheevos_populate_menu(void *data);
48 
50 
51 bool cheevos_apply_cheats(bool *data_bool);
52 
53 bool cheevos_unload(void);
54 
56 
57 void cheevos_test(void);
58 
59 bool cheevos_set_cheats(void);
60 
62 
64 
65 int cheevos_get_console(void);
66 
67 extern bool cheevos_loaded;
68 extern bool cheevos_hardcore_active;
69 extern bool cheevos_hardcore_paused;
70 extern bool cheevos_state_loaded_flag;
71 extern int cheats_are_enabled;
72 extern int cheats_were_enabled;
73 
75 
76 #endif /* __RARCH_CHEEVOS_CHEEVOS_H */
void cheevos_reset_game(void)
Definition: cheevos.c:2053
int cheats_were_enabled
Definition: cheevos.c:293
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
void cheevos_populate_menu(void *data)
Definition: cheevos.c:2073
bool cheevos_state_loaded_flag
Definition: cheevos.c:291
bool cheevos_load(const void *data)
Definition: cheevos.c:3658
size_t len
Definition: cheevos.h:63
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
bool cheevos_unload(void)
Definition: cheevos.c:2221
Definition: cheevos.h:122
bool cheevos_set_cheats(void)
Definition: cheevos.c:2476
bool cheevos_hardcore_active
Definition: cheevos.c:289
bool cheevos_toggle_hardcore_mode(void)
Definition: cheevos.c:2261
char * s
Definition: cheevos.h:62
void cheevos_set_support_cheevos(bool state)
Definition: cheevos.c:2482
struct cheevos_ctx_desc cheevos_ctx_desc_t
bool cheevos_get_description(cheevos_ctx_desc_t *desc)
Definition: cheevos.c:2186
bool cheevos_loaded
Definition: cheevos.c:288
bool cheevos_hardcore_paused
Definition: cheevos.c:290
unsigned idx
Definition: cheevos.h:61
Definition: cheevos.h:123
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: ibxm.h:9
bool cheevos_apply_cheats(bool *data_bool)
Definition: cheevos.c:2213
bool cheevos_get_support_cheevos(void)
Definition: cheevos.c:2487
int cheats_are_enabled
Definition: cheevos.c:292
Definition: cheevos.h:59
cheevos_console_t cheevos_get_console(void)
Definition: cheevos.c:2492
void cheevos_test(void)
Definition: cheevos.c:2449