RetroArch
badges.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_OLD_BADGE_H
17 #define __RARCH_CHEEVOS_OLD_BADGE_H
18 
19 #ifdef HAVE_NEW_CHEEVOS
20 #include "../cheevos-new/badges.h"
21 #else
22 
23 #include "../menu/menu_driver.h"
24 
25 #include <retro_common_api.h>
26 
28 
29 #define CHEEVOS_BADGE_LIMIT 256
30 
31 typedef struct
32 {
33  bool badge_locked[CHEEVOS_BADGE_LIMIT];
34  const char * badge_id_list[CHEEVOS_BADGE_LIMIT];
36 } badges_ctx_t;
37 
38 bool badge_exists(const char* filepath);
39 void set_badge_menu_texture(badges_ctx_t * badges, int i);
40 extern void set_badge_info (badges_ctx_t *badge_struct, int id, const char *badge_id, bool active);
42 
45 
47 
48 #endif
49 
50 #endif
Definition: badges.h:31
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
void set_badge_info(badges_ctx_t *badge_struct, int id, const char *badge_id, bool active)
Definition: badges.c:56
static badges_ctx_t new_badges_ctx
Definition: badges.h:44
menu_texture_item get_badge_texture(int id)
Definition: badges.c:67
void set_badge_menu_texture(badges_ctx_t *badges, int i)
Definition: badges.c:38
uintptr_t menu_texture_item
Definition: menu_driver.h:348
badges_ctx_t badges_ctx
Definition: badges.c:31
static char * filepath
Definition: mpv-libretro.c:60
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
bool badge_exists(const char *filepath)
Definition: badges.c:33
#define CHEEVOS_BADGE_LIMIT
Definition: badges.h:29