17 #ifndef __CHEAT_MANAGER_H 18 #define __CHEAT_MANAGER_H 23 #include "../setting_list.h" 85 #define CHEAT_CODE_SCRATCH_SIZE 16*1024 86 #define CHEAT_DESC_SCRATCH_SIZE 255 272 unsigned int *prev_value,
unsigned int *curr_value);
unsigned int repeat_add_to_address
Definition: cheat_manager.h:151
int cheat_manager_add_matches(const char *path, const char *label, unsigned type, size_t idx, size_t entry_idx)
Definition: cheat_manager.c:1105
unsigned search_eqminus_value
Definition: cheat_manager.h:175
Definition: cheat_manager.h:78
Definition: cheat_manager.h:54
unsigned int loading_cheat_offset
Definition: cheat_manager.h:185
unsigned int value
Definition: cheat_manager.h:100
unsigned cheat_manager_get_size(void)
Definition: cheat_manager.c:61
uint8_t ** memory_buf_list
Definition: cheat_manager.h:165
const char * cheat_manager_get_desc(unsigned i)
Definition: cheat_manager.c:636
unsigned num_matches
Definition: cheat_manager.h:176
int cheat_manager_initialize_memory(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:716
bool cheat_manager_alloc_if_empty(void)
Definition: cheat_manager.c:708
uint8_t * matches
Definition: cheat_manager.h:164
void cheat_manager_free(void)
Definition: cheat_manager.c:520
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
unsigned int delete_state
Definition: cheat_manager.h:180
int cheat_manager_search_eq(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:938
bool memory_initialized
Definition: cheat_manager.h:178
int cheat_manager_search_neq(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:942
unsigned int rumble_prev_value
Definition: cheat_manager.h:127
Definition: cheat_manager.h:31
int cheat_manager_copy_match(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:1620
bool cheat_manager_save(const char *path, const char *cheat_database, bool overwrite)
Definition: cheat_manager.c:124
bool cheat_manager_load(const char *path, bool append)
Definition: cheat_manager.c:392
GLuint address
Definition: glext.h:10300
GLsizei const GLchar ** path
Definition: glext.h:7901
Definition: cheat_manager.h:77
bool cheat_manager_copy_working_to_idx(unsigned idx)
Definition: cheat_manager.c:254
unsigned dummy
Definition: cheat_manager.h:172
Definition: cheat_manager.h:32
Definition: cheat_manager.h:81
int cheat_manager_delete_match(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:1627
Definition: cheat_manager.h:40
bool big_endian
Definition: cheat_manager.h:177
void cheat_manager_save_game_specific_cheats(void)
Definition: cheat_manager.c:694
unsigned int address
Definition: cheat_manager.h:101
unsigned search_exact_value
Definition: cheat_manager.h:173
unsigned int rumble_secondary_strength
Definition: cheat_manager.h:133
int64_t retro_time_t
Definition: libretro.h:1610
Definition: cheat_manager.h:63
Definition: cheat_manager.h:55
Definition: setting_list.h:92
Definition: cheat_manager.h:71
struct item_cheat * cheats
Definition: cheat_manager.h:157
Definition: cheat_manager.h:53
uint8_t * prev_memory_buf
Definition: cheat_manager.h:163
unsigned int loading_cheat_size
Definition: cheat_manager.h:184
char working_code[CHEAT_CODE_SCRATCH_SIZE]
Definition: cheat_manager.h:183
unsigned int rumble_initialized
Definition: cheat_manager.h:128
unsigned ptr
Definition: cheat_manager.h:158
Definition: cheat_manager.h:76
struct item_cheat working_cheat
Definition: cheat_manager.h:168
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
Definition: cheat_manager.h:88
int cheat_manager_search_lte(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:930
unsigned int repeat_count
Definition: cheat_manager.h:149
Definition: cheat_manager.h:43
int cheat_manager_search_gt(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:926
unsigned int repeat_add_to_value
Definition: cheat_manager.h:150
char * code
Definition: cheat_manager.h:93
int cheat_manager_search_gte(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:934
void cheat_manager_toggle(void)
Definition: cheat_manager.c:596
Definition: cheat_manager.h:74
GLenum type
Definition: glext.h:6233
unsigned cheat_manager_get_buf_size(void)
Definition: cheat_manager.c:56
unsigned browse_address
Definition: cheat_manager.h:181
uint8_t * curr_memory_buf
Definition: cheat_manager.h:162
bool state
Definition: cheat_manager.h:92
Definition: cheat_manager.h:73
unsigned match_idx
Definition: cheat_manager.h:169
void cheat_manager_apply_cheats(void)
Definition: cheat_manager.c:66
cheat_handler_type
Definition: cheat_manager.h:28
unsigned entry_idx
Definition: menu_cbs_ok.c:2308
unsigned buf_size
Definition: cheat_manager.h:160
void cheat_manager_load_game_specific_cheats(void)
Definition: cheat_manager.c:686
Definition: cheat_manager.h:39
Definition: cheat_manager.h:50
Definition: cheat_manager.h:79
bool big_endian
Definition: cheat_manager.h:124
unsigned total_memory_size
Definition: cheat_manager.h:161
cheat_match_action_type
Definition: cheat_manager.h:60
bool cheat_manager_realloc(unsigned new_size, unsigned default_handler)
Definition: cheat_manager.c:465
retro_time_t rumble_primary_end_time
Definition: cheat_manager.h:132
void cheat_manager_set_code(unsigned index, const char *str)
Definition: cheat_manager.c:105
unsigned num_memory_buffers
Definition: cheat_manager.h:167
Definition: cheat_manager.h:155
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 idx
Definition: pixman-arm-neon-asm.h:96
Definition: cheat_manager.h:56
#define CHEAT_DESC_SCRATCH_SIZE
Definition: cheat_manager.h:86
cheat_manager_t cheat_manager_state
Definition: cheat_manager.h:190
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
bool cheat_manager_get_code_state(unsigned i)
Definition: cheat_manager.c:643
retro_time_t rumble_secondary_end_time
Definition: cheat_manager.h:135
int cheat_manager_search_exact(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:918
GLuint index
Definition: glext.h:6671
unsigned search_bit_size
Definition: cheat_manager.h:171
cheat_rumble_type
Definition: cheat_manager.h:68
Definition: cheat_manager.h:51
Definition: cheat_manager.h:42
Definition: cheat_manager.h:41
int cheat_manager_search(enum cheat_search_type search_type)
Definition: cheat_manager.c:955
const char * cheat_manager_get_code(unsigned i)
Definition: cheat_manager.c:629
bool cheat_manager_copy_idx_to_working(unsigned idx)
Definition: cheat_manager.c:236
unsigned int rumble_secondary_duration
Definition: cheat_manager.h:134
Definition: cheat_manager.h:72
unsigned int idx
Definition: cheat_manager.h:90
Definition: cheat_manager.h:30
void cheat_manager_toggle_index(unsigned i)
Definition: cheat_manager.c:580
Definition: cheat_manager.h:62
unsigned size
Definition: cheat_manager.h:159
void cheat_manager_state_free(void)
Definition: cheat_manager.c:703
unsigned int address_mask
Definition: cheat_manager.h:122
void cheat_manager_match_action(enum cheat_match_action_type match_action, unsigned int target_match_idx, unsigned int *address, unsigned int *address_mask, unsigned int *prev_value, unsigned int *curr_value)
Definition: cheat_manager.c:1462
unsigned match_action
Definition: cheat_manager.h:170
Definition: cheat_manager.h:64
void cheat_manager_apply_retro_cheats(void)
Definition: cheat_manager.c:1278
char working_desc[CHEAT_DESC_SCRATCH_SIZE]
Definition: cheat_manager.h:182
unsigned int handler
Definition: cheat_manager.h:94
Definition: cheat_manager.h:75
unsigned search_eqplus_value
Definition: cheat_manager.h:174
void cheat_manager_update(cheat_manager_t *handle, unsigned handle_idx)
Definition: cheat_manager.c:564
#define CHEAT_CODE_SCRATCH_SIZE
Definition: cheat_manager.h:85
unsigned * memory_size_list
Definition: cheat_manager.h:166
Definition: cheat_manager.h:49
Definition: cheat_manager.h:44
unsigned int memory_search_size
Definition: cheat_manager.h:98
bool memory_search_initialized
Definition: cheat_manager.h:179
unsigned int rumble_type
Definition: cheat_manager.h:125
int cheat_manager_search_eqplus(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:946
cheat_type
Definition: cheat_manager.h:35
Definition: cheat_manager.h:80
Definition: cheat_manager.h:57
Definition: cheat_manager.h:52
void cheat_manager_index_prev(void)
Definition: cheat_manager.c:616
unsigned int cheat_type
Definition: cheat_manager.h:99
unsigned int rumble_primary_duration
Definition: cheat_manager.h:131
int cheat_manager_search_lt(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:922
int cheat_manager_search_eqminus(rarch_setting_t *setting, bool wraparound)
Definition: cheat_manager.c:950
unsigned char uint8_t
Definition: stdint.h:124
Definition: cheat_manager.h:65
Definition: cheat_manager.h:37
Definition: cheat_manager.h:38
void cheat_manager_index_next(void)
Definition: cheat_manager.c:607
const char *const str
Definition: portlistingparse.c:18
unsigned int rumble_port
Definition: cheat_manager.h:129
char * desc
Definition: cheat_manager.h:91
Definition: cheat_manager.h:70
unsigned int rumble_value
Definition: cheat_manager.h:126
cheat_search_type
Definition: cheat_manager.h:47
unsigned int rumble_primary_strength
Definition: cheat_manager.h:130