|
N64FlashcartMenu
|
Datel Codes. More...
Go to the source code of this file.
Data Structures | |
| struct | cheat_file_code_t |
| Cheat file code Structure. More... | |
Macros | |
| #define | MAX_CHEAT_CODES (64) |
| #define | MAX_CHEAT_CODE_ARRAYLIST_SIZE (MAX_CHEAT_CODES * 2 + 2) |
Enumerations | |
| enum | cheat_file_load_err_t { CHEAT_FILE_LOAD_OK , CHEAT_FILE_LOAD_ERR_MEMORY_ALLOC_FAIL , CHEAT_FILE_LOAD_ERR_FILE_OPEN_FAIL , CHEAT_FILE_LOAD_ERR_FILE_STAT_FAIL , CHEAT_FILE_LOAD_ERR_FILE_EMPTY , CHEAT_FILE_LOAD_ERR_FILE_TOO_BIG , CHEAT_FILE_LOAD_ERR_FILE_CONTENTS_ALLOC_FAIL , CHEAT_FILE_LOAD_ERR_FILE_READ_FAIL , CHEAT_FILE_LOAD_ERR_FILE_CLOSE_FAIL , CHEAT_FILE_LOAD_ERR_UNKNOWN } |
| Cheat code loading enum. | |
Functions | |
| size_t | generate_enabled_cheats_array (cheat_file_code_t *cheats_in, uint32_t *cheats_out) |
| Generate a cheats array containing enabled cheats as address/value pairs. The last two entries will always be zero. | |
| cheat_file_code_t * | get_cheat_codes (void) |
| Get the cheat codes. | |
| void | set_cheat_codes (cheat_file_code_t *cheats) |
| Set the cheat codes. | |
| void | load_cheats_from_file (char *path) |
| Load cheats from a file. | |
| void | save_cheats_to_file (char *path) |
| Save cheats to a file. | |
Datel Codes.
| struct cheat_file_code_t |
| size_t generate_enabled_cheats_array | ( | cheat_file_code_t * | cheats_in, |
| uint32_t * | cheats_out ) |
Generate a cheats array containing enabled cheats as address/value pairs. The last two entries will always be zero.
| cheats_in | Input array of type cheat_file_code_t. |
| cheats_out | Output array (must be at least (MAX_CHEAT_CODES * 2 + 2) in size). |
| cheat_file_code_t * get_cheat_codes | ( | void | ) |
Get the cheat codes.
| void set_cheat_codes | ( | cheat_file_code_t * | cheats | ) |
Set the cheat codes.
| cheats | Pointer to the array of cheat codes. |
| cheats | Pointer to the array of cheat codes. |
| void load_cheats_from_file | ( | char * | path | ) |
Load cheats from a file.
| path | Path to the file containing cheat codes. |
| void save_cheats_to_file | ( | char * | path | ) |
Save cheats to a file.
| path | Path to the file where cheat codes should be saved. |