RetroArch
Classes | Macros | Typedefs | Enumerations | Functions | Variables
cheevos.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
Include dependency graph for cheevos.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cheevos_ctx_desc
 

Macros

#define CHEEVOS_TAG   "[CHEEVOS]: "
 
#define CHEEVOS_LOG   cheevos_log
 
#define CHEEVOS_ERR   cheevos_log
 

Typedefs

typedef struct cheevos_ctx_desc cheevos_ctx_desc_t
 

Enumerations

enum  cheevos_console_t {
  CHEEVOS_CONSOLE_NONE = 0, CHEEVOS_CONSOLE_MEGA_DRIVE = 1, CHEEVOS_CONSOLE_NINTENDO_64 = 2, CHEEVOS_CONSOLE_SUPER_NINTENDO = 3,
  CHEEVOS_CONSOLE_GAMEBOY = 4, CHEEVOS_CONSOLE_GAMEBOY_ADVANCE = 5, CHEEVOS_CONSOLE_GAMEBOY_COLOR = 6, CHEEVOS_CONSOLE_NINTENDO = 7,
  CHEEVOS_CONSOLE_PC_ENGINE = 8, CHEEVOS_CONSOLE_SEGA_CD = 9, CHEEVOS_CONSOLE_SEGA_32X = 10, CHEEVOS_CONSOLE_MASTER_SYSTEM = 11,
  CHEEVOS_CONSOLE_PLAYSTATION = 12, CHEEVOS_CONSOLE_ATARI_LYNX = 13, CHEEVOS_CONSOLE_NEOGEO_POCKET = 14, CHEEVOS_CONSOLE_GAME_GEAR = 15,
  CHEEVOS_CONSOLE_GAMECUBE = 16, CHEEVOS_CONSOLE_ATARI_JAGUAR = 17, CHEEVOS_CONSOLE_NINTENDO_DS = 18, CHEEVOS_CONSOLE_WII = 19,
  CHEEVOS_CONSOLE_WII_U = 20, CHEEVOS_CONSOLE_PLAYSTATION_2 = 21, CHEEVOS_CONSOLE_XBOX = 22, CHEEVOS_CONSOLE_SKYNET = 23,
  CHEEVOS_CONSOLE_XBOX_ONE = 24, CHEEVOS_CONSOLE_ATARI_2600 = 25, CHEEVOS_CONSOLE_MS_DOS = 26, CHEEVOS_CONSOLE_ARCADE = 27,
  CHEEVOS_CONSOLE_VIRTUAL_BOY = 28, CHEEVOS_CONSOLE_MSX = 29, CHEEVOS_CONSOLE_COMMODORE_64 = 30, CHEEVOS_CONSOLE_ZX81 = 31,
  CHEEVOS_CONSOLE_ATARI_7800 = 51
}
 
enum  {
  CHEEVOS_DIRTY_TITLE = 1 << 0, CHEEVOS_DIRTY_DESC = 1 << 1, CHEEVOS_DIRTY_POINTS = 1 << 2, CHEEVOS_DIRTY_AUTHOR = 1 << 3,
  CHEEVOS_DIRTY_ID = 1 << 4, CHEEVOS_DIRTY_BADGE = 1 << 5, CHEEVOS_DIRTY_CONDITIONS = 1 << 6, CHEEVOS_DIRTY_VOTES = 1 << 7,
  CHEEVOS_DIRTY_DESCRIPTION = 1 << 8, CHEEVOS_DIRTY_ALL = (1 << 9) - 1
}
 
enum  { CHEEVOS_ACTIVE_SOFTCORE = 1 << 0, CHEEVOS_ACTIVE_HARDCORE = 1 << 1 }
 
enum  {
  CHEEVOS_FORMAT_FRAMES = 0, CHEEVOS_FORMAT_SECS, CHEEVOS_FORMAT_MILLIS, CHEEVOS_FORMAT_SCORE,
  CHEEVOS_FORMAT_VALUE, CHEEVOS_FORMAT_OTHER
}
 

Functions

void cheevos_log (const char *fmt,...)
 
bool cheevos_load (const void *data)
 
void cheevos_reset_game (void)
 
void cheevos_populate_menu (void *data)
 
bool cheevos_get_description (cheevos_ctx_desc_t *desc)
 
bool cheevos_apply_cheats (bool *data_bool)
 
bool cheevos_unload (void)
 
bool cheevos_toggle_hardcore_mode (void)
 
void cheevos_test (void)
 
bool cheevos_set_cheats (void)
 
void cheevos_set_support_cheevos (bool state)
 
bool cheevos_get_support_cheevos (void)
 
cheevos_console_t cheevos_get_console (void)
 

Variables

bool cheevos_loaded
 
bool cheevos_hardcore_active
 
bool cheevos_hardcore_paused
 
bool cheevos_state_loaded_flag
 
int cheats_are_enabled
 
int cheats_were_enabled
 

Macro Definition Documentation

◆ CHEEVOS_ERR

#define CHEEVOS_ERR   cheevos_log

◆ CHEEVOS_LOG

#define CHEEVOS_LOG   cheevos_log

◆ CHEEVOS_TAG

#define CHEEVOS_TAG   "[CHEEVOS]: "

Typedef Documentation

◆ cheevos_ctx_desc_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHEEVOS_ACTIVE_SOFTCORE 
CHEEVOS_ACTIVE_HARDCORE 

◆ anonymous enum

anonymous enum
Enumerator
CHEEVOS_FORMAT_FRAMES 
CHEEVOS_FORMAT_SECS 
CHEEVOS_FORMAT_MILLIS 
CHEEVOS_FORMAT_SCORE 
CHEEVOS_FORMAT_VALUE 
CHEEVOS_FORMAT_OTHER 

◆ anonymous enum

anonymous enum
Enumerator
CHEEVOS_DIRTY_TITLE 
CHEEVOS_DIRTY_DESC 
CHEEVOS_DIRTY_POINTS 
CHEEVOS_DIRTY_AUTHOR 
CHEEVOS_DIRTY_ID 
CHEEVOS_DIRTY_BADGE 
CHEEVOS_DIRTY_CONDITIONS 
CHEEVOS_DIRTY_VOTES 
CHEEVOS_DIRTY_DESCRIPTION 
CHEEVOS_DIRTY_ALL 

◆ cheevos_console_t

Enumerator
CHEEVOS_CONSOLE_NONE 
CHEEVOS_CONSOLE_MEGA_DRIVE 
CHEEVOS_CONSOLE_NINTENDO_64 
CHEEVOS_CONSOLE_SUPER_NINTENDO 
CHEEVOS_CONSOLE_GAMEBOY 
CHEEVOS_CONSOLE_GAMEBOY_ADVANCE 
CHEEVOS_CONSOLE_GAMEBOY_COLOR 
CHEEVOS_CONSOLE_NINTENDO 
CHEEVOS_CONSOLE_PC_ENGINE 
CHEEVOS_CONSOLE_SEGA_CD 
CHEEVOS_CONSOLE_SEGA_32X 
CHEEVOS_CONSOLE_MASTER_SYSTEM 
CHEEVOS_CONSOLE_PLAYSTATION 
CHEEVOS_CONSOLE_ATARI_LYNX 
CHEEVOS_CONSOLE_NEOGEO_POCKET 
CHEEVOS_CONSOLE_GAME_GEAR 
CHEEVOS_CONSOLE_GAMECUBE 
CHEEVOS_CONSOLE_ATARI_JAGUAR 
CHEEVOS_CONSOLE_NINTENDO_DS 
CHEEVOS_CONSOLE_WII 
CHEEVOS_CONSOLE_WII_U 
CHEEVOS_CONSOLE_PLAYSTATION_2 
CHEEVOS_CONSOLE_XBOX 
CHEEVOS_CONSOLE_SKYNET 
CHEEVOS_CONSOLE_XBOX_ONE 
CHEEVOS_CONSOLE_ATARI_2600 
CHEEVOS_CONSOLE_MS_DOS 
CHEEVOS_CONSOLE_ARCADE 
CHEEVOS_CONSOLE_VIRTUAL_BOY 
CHEEVOS_CONSOLE_MSX 
CHEEVOS_CONSOLE_COMMODORE_64 
CHEEVOS_CONSOLE_ZX81 
CHEEVOS_CONSOLE_ATARI_7800 

Function Documentation

◆ cheevos_apply_cheats()

bool cheevos_apply_cheats ( bool data_bool)

◆ cheevos_get_console()

cheevos_console_t cheevos_get_console ( void  )

◆ cheevos_get_description()

bool cheevos_get_description ( cheevos_ctx_desc_t desc)

◆ cheevos_get_support_cheevos()

bool cheevos_get_support_cheevos ( void  )

◆ cheevos_load()

bool cheevos_load ( const void data)

◆ cheevos_log()

void cheevos_log ( const char *  fmt,
  ... 
)

◆ cheevos_populate_menu()

void cheevos_populate_menu ( void data)

◆ cheevos_reset_game()

void cheevos_reset_game ( void  )

◆ cheevos_set_cheats()

bool cheevos_set_cheats ( void  )

◆ cheevos_set_support_cheevos()

void cheevos_set_support_cheevos ( bool  state)

◆ cheevos_test()

void cheevos_test ( void  )

◆ cheevos_toggle_hardcore_mode()

bool cheevos_toggle_hardcore_mode ( void  )

◆ cheevos_unload()

bool cheevos_unload ( void  )

Variable Documentation

◆ cheats_are_enabled

int cheats_are_enabled

◆ cheats_were_enabled

int cheats_were_enabled

◆ cheevos_hardcore_active

bool cheevos_hardcore_active

◆ cheevos_hardcore_paused

bool cheevos_hardcore_paused

◆ cheevos_loaded

bool cheevos_loaded

◆ cheevos_state_loaded_flag

bool cheevos_state_loaded_flag