RetroArch
cond.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2015-2017 - 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_COND_H
17 #define __RARCH_CHEEVOS_COND_H
18 
19 #include "var.h"
20 
21 #include <retro_common_api.h>
22 
24 
25 typedef enum
26 {
34 
35 typedef enum
36 {
44 
45 typedef struct
46 {
48  unsigned req_hits;
49  unsigned curr_hits;
50  char pause;
51 
56 
57 void cheevos_cond_parse(cheevos_cond_t* cond, const char** memaddr);
58 unsigned cheevos_cond_count_in_set(const char* memaddr, unsigned which);
59 void cheevos_cond_parse_in_set(cheevos_cond_t* cond, const char* memaddr, unsigned which);
60 
62 
63 #endif /* __RARCH_CHEEVOS_COND_H */
Definition: cond.h:32
Definition: cond.h:31
Definition: cond.h:42
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Definition: cond.h:30
Definition: var.h:60
cheevos_cond_op_t op
Definition: cond.h:53
static int cond(LexState *ls)
Definition: lparser.c:1177
Definition: cond.h:28
Definition: cond.h:45
Definition: cond.h:40
void cheevos_cond_parse(cheevos_cond_t *cond, const char **memaddr)
Definition: cond.c:76
cheevos_cond_op_t
Definition: cond.h:35
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
unsigned req_hits
Definition: cond.h:48
void cheevos_cond_parse_in_set(cheevos_cond_t *cond, const char *memaddr, unsigned which)
Definition: cond.c:159
cheevos_cond_type_t
Definition: cond.h:25
cheevos_var_t target
Definition: cond.h:54
cheevos_var_t source
Definition: cond.h:52
unsigned cheevos_cond_count_in_set(const char *memaddr, unsigned which)
Definition: cond.c:127
Definition: cond.h:29
Definition: cond.h:38
cheevos_cond_type_t type
Definition: cond.h:47
char pause
Definition: cond.h:50
Definition: cond.h:27
Definition: cond.h:37
unsigned curr_hits
Definition: cond.h:49