RetroArch
Classes | Typedefs | Enumerations | Functions
rcheevos.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rc_operand_t
 
struct  rc_condition_t
 
struct  rc_condset_t
 
struct  rc_trigger_t
 
struct  rc_term_t
 
struct  rc_expression_t
 
struct  rc_value_t
 
struct  rc_lboard_t
 

Typedefs

typedef struct lua_State lua_State
 
typedef unsigned(* rc_peek_t) (unsigned address, unsigned num_bytes, void *ud)
 
typedef struct rc_condition_t rc_condition_t
 
typedef struct rc_condset_t rc_condset_t
 
typedef struct rc_term_t rc_term_t
 
typedef struct rc_expression_t rc_expression_t
 

Enumerations

enum  {
  RC_OK = 0, RC_INVALID_LUA_OPERAND = -1, RC_INVALID_MEMORY_OPERAND = -2, RC_INVALID_CONST_OPERAND = -3,
  RC_INVALID_FP_OPERAND = -4, RC_INVALID_CONDITION_TYPE = -5, RC_INVALID_OPERATOR = -6, RC_INVALID_REQUIRED_HITS = -7,
  RC_DUPLICATED_START = -8, RC_DUPLICATED_CANCEL = -9, RC_DUPLICATED_SUBMIT = -10, RC_DUPLICATED_VALUE = -11,
  RC_DUPLICATED_PROGRESS = -12, RC_MISSING_START = -13, RC_MISSING_CANCEL = -14, RC_MISSING_SUBMIT = -15,
  RC_MISSING_VALUE = -16, RC_INVALID_LBOARD_FIELD = -17
}
 
enum  {
  RC_CONSOLE_MEGA_DRIVE = 1, RC_CONSOLE_NINTENDO_64 = 2, RC_CONSOLE_SUPER_NINTENDO = 3, RC_CONSOLE_GAMEBOY = 4,
  RC_CONSOLE_GAMEBOY_ADVANCE = 5, RC_CONSOLE_GAMEBOY_COLOR = 6, RC_CONSOLE_NINTENDO = 7, RC_CONSOLE_PC_ENGINE = 8,
  RC_CONSOLE_SEGA_CD = 9, RC_CONSOLE_SEGA_32X = 10, RC_CONSOLE_MASTER_SYSTEM = 11, RC_CONSOLE_PLAYSTATION = 12,
  RC_CONSOLE_ATARI_LYNX = 13, RC_CONSOLE_NEOGEO_POCKET = 14, RC_CONSOLE_GAME_GEAR = 15, RC_CONSOLE_GAMECUBE = 16,
  RC_CONSOLE_ATARI_JAGUAR = 17, RC_CONSOLE_NINTENDO_DS = 18, RC_CONSOLE_WII = 19, RC_CONSOLE_WII_U = 20,
  RC_CONSOLE_PLAYSTATION_2 = 21, RC_CONSOLE_XBOX = 22, RC_CONSOLE_SKYNET = 23, RC_CONSOLE_XBOX_ONE = 24,
  RC_CONSOLE_ATARI_2600 = 25, RC_CONSOLE_MS_DOS = 26, RC_CONSOLE_ARCADE = 27, RC_CONSOLE_VIRTUAL_BOY = 28,
  RC_CONSOLE_MSX = 29, RC_CONSOLE_COMMODORE_64 = 30, RC_CONSOLE_ZX81 = 31
}
 
enum  {
  RC_OPERAND_BIT_0, RC_OPERAND_BIT_1, RC_OPERAND_BIT_2, RC_OPERAND_BIT_3,
  RC_OPERAND_BIT_4, RC_OPERAND_BIT_5, RC_OPERAND_BIT_6, RC_OPERAND_BIT_7,
  RC_OPERAND_LOW, RC_OPERAND_HIGH, RC_OPERAND_8_BITS, RC_OPERAND_16_BITS,
  RC_OPERAND_24_BITS, RC_OPERAND_32_BITS
}
 
enum  {
  RC_OPERAND_ADDRESS, RC_OPERAND_DELTA, RC_OPERAND_CONST, RC_OPERAND_FP,
  RC_OPERAND_LUA
}
 
enum  {
  RC_CONDITION_STANDARD, RC_CONDITION_PAUSE_IF, RC_CONDITION_RESET_IF, RC_CONDITION_ADD_SOURCE,
  RC_CONDITION_SUB_SOURCE, RC_CONDITION_ADD_HITS
}
 
enum  {
  RC_CONDITION_EQ, RC_CONDITION_LT, RC_CONDITION_LE, RC_CONDITION_GT,
  RC_CONDITION_GE, RC_CONDITION_NE
}
 
enum  {
  RC_LBOARD_INACTIVE, RC_LBOARD_ACTIVE, RC_LBOARD_STARTED, RC_LBOARD_CANCELED,
  RC_LBOARD_TRIGGERED
}
 
enum  {
  RC_FORMAT_FRAMES = 0, RC_FORMAT_SECONDS, RC_FORMAT_CENTISECS, RC_FORMAT_SCORE,
  RC_FORMAT_VALUE, RC_FORMAT_OTHER
}
 

Functions

int rc_trigger_size (const char *memaddr)
 
rc_trigger_trc_parse_trigger (void *buffer, const char *memaddr, lua_State *L, int funcs_ndx)
 
int rc_test_trigger (rc_trigger_t *trigger, rc_peek_t peek, void *ud, lua_State *L)
 
void rc_reset_trigger (rc_trigger_t *self)
 
int rc_value_size (const char *memaddr)
 
rc_value_trc_parse_value (void *buffer, const char *memaddr, lua_State *L, int funcs_ndx)
 
unsigned rc_evaluate_value (rc_value_t *value, rc_peek_t peek, void *ud, lua_State *L)
 
int rc_lboard_size (const char *memaddr)
 
rc_lboard_trc_parse_lboard (void *buffer, const char *memaddr, lua_State *L, int funcs_ndx)
 
int rc_evaluate_lboard (rc_lboard_t *lboard, unsigned *value, rc_peek_t peek, void *peek_ud, lua_State *L)
 
void rc_reset_lboard (rc_lboard_t *lboard)
 
int rc_parse_format (const char *format_str)
 
void rc_format_value (char *buffer, int size, unsigned value, int format)
 

Typedef Documentation

◆ lua_State

typedef struct lua_State lua_State

◆ rc_condition_t

◆ rc_condset_t

typedef struct rc_condset_t rc_condset_t

◆ rc_expression_t

◆ rc_peek_t

typedef unsigned(* rc_peek_t) (unsigned address, unsigned num_bytes, void *ud)

Callback used to read num_bytes bytes from memory starting at address. If num_bytes is greater than 1, the value is read in little-endian from memory.

◆ rc_term_t

typedef struct rc_term_t rc_term_t

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RC_OK 
RC_INVALID_LUA_OPERAND 
RC_INVALID_MEMORY_OPERAND 
RC_INVALID_CONST_OPERAND 
RC_INVALID_FP_OPERAND 
RC_INVALID_CONDITION_TYPE 
RC_INVALID_OPERATOR 
RC_INVALID_REQUIRED_HITS 
RC_DUPLICATED_START 
RC_DUPLICATED_CANCEL 
RC_DUPLICATED_SUBMIT 
RC_DUPLICATED_VALUE 
RC_DUPLICATED_PROGRESS 
RC_MISSING_START 
RC_MISSING_CANCEL 
RC_MISSING_SUBMIT 
RC_MISSING_VALUE 
RC_INVALID_LBOARD_FIELD 

◆ anonymous enum

anonymous enum
Enumerator
RC_CONSOLE_MEGA_DRIVE 
RC_CONSOLE_NINTENDO_64 
RC_CONSOLE_SUPER_NINTENDO 
RC_CONSOLE_GAMEBOY 
RC_CONSOLE_GAMEBOY_ADVANCE 
RC_CONSOLE_GAMEBOY_COLOR 
RC_CONSOLE_NINTENDO 
RC_CONSOLE_PC_ENGINE 
RC_CONSOLE_SEGA_CD 
RC_CONSOLE_SEGA_32X 
RC_CONSOLE_MASTER_SYSTEM 
RC_CONSOLE_PLAYSTATION 
RC_CONSOLE_ATARI_LYNX 
RC_CONSOLE_NEOGEO_POCKET 
RC_CONSOLE_GAME_GEAR 
RC_CONSOLE_GAMECUBE 
RC_CONSOLE_ATARI_JAGUAR 
RC_CONSOLE_NINTENDO_DS 
RC_CONSOLE_WII 
RC_CONSOLE_WII_U 
RC_CONSOLE_PLAYSTATION_2 
RC_CONSOLE_XBOX 
RC_CONSOLE_SKYNET 
RC_CONSOLE_XBOX_ONE 
RC_CONSOLE_ATARI_2600 
RC_CONSOLE_MS_DOS 
RC_CONSOLE_ARCADE 
RC_CONSOLE_VIRTUAL_BOY 
RC_CONSOLE_MSX 
RC_CONSOLE_COMMODORE_64 
RC_CONSOLE_ZX81 

◆ anonymous enum

anonymous enum
Enumerator
RC_OPERAND_BIT_0 
RC_OPERAND_BIT_1 
RC_OPERAND_BIT_2 
RC_OPERAND_BIT_3 
RC_OPERAND_BIT_4 
RC_OPERAND_BIT_5 
RC_OPERAND_BIT_6 
RC_OPERAND_BIT_7 
RC_OPERAND_LOW 
RC_OPERAND_HIGH 
RC_OPERAND_8_BITS 
RC_OPERAND_16_BITS 
RC_OPERAND_24_BITS 
RC_OPERAND_32_BITS 

◆ anonymous enum

anonymous enum
Enumerator
RC_OPERAND_ADDRESS 
RC_OPERAND_DELTA 
RC_OPERAND_CONST 
RC_OPERAND_FP 
RC_OPERAND_LUA 

◆ anonymous enum

anonymous enum
Enumerator
RC_CONDITION_STANDARD 
RC_CONDITION_PAUSE_IF 
RC_CONDITION_RESET_IF 
RC_CONDITION_ADD_SOURCE 
RC_CONDITION_SUB_SOURCE 
RC_CONDITION_ADD_HITS 

◆ anonymous enum

anonymous enum
Enumerator
RC_CONDITION_EQ 
RC_CONDITION_LT 
RC_CONDITION_LE 
RC_CONDITION_GT 
RC_CONDITION_GE 
RC_CONDITION_NE 

◆ anonymous enum

anonymous enum
Enumerator
RC_LBOARD_INACTIVE 
RC_LBOARD_ACTIVE 
RC_LBOARD_STARTED 
RC_LBOARD_CANCELED 
RC_LBOARD_TRIGGERED 

◆ anonymous enum

anonymous enum
Enumerator
RC_FORMAT_FRAMES 
RC_FORMAT_SECONDS 
RC_FORMAT_CENTISECS 
RC_FORMAT_SCORE 
RC_FORMAT_VALUE 
RC_FORMAT_OTHER 

Function Documentation

◆ rc_evaluate_lboard()

int rc_evaluate_lboard ( rc_lboard_t lboard,
unsigned *  value,
rc_peek_t  peek,
void peek_ud,
lua_State L 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_evaluate_value()

unsigned rc_evaluate_value ( rc_value_t value,
rc_peek_t  peek,
void ud,
lua_State L 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_format_value()

void rc_format_value ( char *  buffer,
int  size,
unsigned  value,
int  format 
)
Here is the caller graph for this function:

◆ rc_lboard_size()

int rc_lboard_size ( const char *  memaddr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_parse_format()

int rc_parse_format ( const char *  format_str)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_parse_lboard()

rc_lboard_t* rc_parse_lboard ( void buffer,
const char *  memaddr,
lua_State L,
int  funcs_ndx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_parse_trigger()

rc_trigger_t* rc_parse_trigger ( void buffer,
const char *  memaddr,
lua_State L,
int  funcs_ndx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_parse_value()

rc_value_t* rc_parse_value ( void buffer,
const char *  memaddr,
lua_State L,
int  funcs_ndx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_reset_lboard()

void rc_reset_lboard ( rc_lboard_t lboard)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_reset_trigger()

void rc_reset_trigger ( rc_trigger_t self)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_test_trigger()

int rc_test_trigger ( rc_trigger_t trigger,
rc_peek_t  peek,
void ud,
lua_State L 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_trigger_size()

int rc_trigger_size ( const char *  memaddr)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rc_value_size()

int rc_value_size ( const char *  memaddr)
Here is the call graph for this function:
Here is the caller graph for this function: