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_BADGE_H
17 #define __RARCH_CHEEVOS_BADGE_H
18 
19 #include "../menu/menu_driver.h"
20 
21 #include <retro_common_api.h>
22 
24 
25 #define CHEEVOS_BADGE_LIMIT 256
26 
27 typedef struct
28 {
29  bool badge_locked[CHEEVOS_BADGE_LIMIT];
30  const char * badge_id_list[CHEEVOS_BADGE_LIMIT];
31  menu_texture_item menu_texture_list[CHEEVOS_BADGE_LIMIT];
32 } badges_ctx_t;
33 
34 bool badge_exists(const char* filepath);
35 void set_badge_menu_texture(badges_ctx_t * badges, int i);
36 extern void set_badge_info (badges_ctx_t *badge_struct, int id, const char *badge_id, bool active);
38 
41 
43 
44 #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
menu_texture_item get_badge_texture(int id)
Definition: badges.c:67
static badges_ctx_t new_badges_ctx
Definition: badges.h:40
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:25