diff options
Diffstat (limited to 'source/cheats.h')
-rw-r--r-- | source/cheats.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/source/cheats.h b/source/cheats.h index c3a7a54..7d43f2b 100644 --- a/source/cheats.h +++ b/source/cheats.h @@ -96,11 +96,11 @@ typedef struct { - uint32 address; - uint8 byte; - uint8 saved_byte; - bool8 enabled; - bool8 saved; + uint32_t address; + uint8_t byte; + uint8_t saved_byte; + bool enabled; + bool saved; char name[MAX_SFCCHEAT_NAME]; }SCheat; @@ -108,16 +108,16 @@ typedef struct typedef struct { SCheat c [MAX_CHEATS_T]; - uint32 num_cheats; - uint8 CWRAM [0x20000]; - uint8 CSRAM [0x10000]; - uint8 CIRAM [0x2000]; - uint8 *RAM; - uint8 *FillRAM; - uint8 *SRAM; - uint32 WRAM_BITS [0x20000 >> 3]; - uint32 SRAM_BITS [0x10000 >> 3]; - uint32 IRAM_BITS [0x2000 >> 3]; + uint32_t num_cheats; + uint8_t CWRAM [0x20000]; + uint8_t CSRAM [0x10000]; + uint8_t CIRAM [0x2000]; + uint8_t *RAM; + uint8_t *FillRAM; + uint8_t *SRAM; + uint32_t WRAM_BITS [0x20000 >> 3]; + uint32_t SRAM_BITS [0x10000 >> 3]; + uint32_t IRAM_BITS [0x2000 >> 3]; }SCheatData; typedef enum @@ -133,30 +133,30 @@ typedef enum void S9xInitCheatData (); -const char *S9xGameGenieToRaw (const char *code, uint32 *address, uint8 *byte); -const char *S9xProActionReplayToRaw (const char *code, uint32 *address, uint8 *byte); -const char *S9xGoldFingerToRaw (const char *code, uint32 *address, bool8 *sram, - uint8 *num_bytes, uint8 bytes[3]); +const char *S9xGameGenieToRaw (const char *code, uint32_t *address, uint8_t *byte); +const char *S9xProActionReplayToRaw (const char *code, uint32_t *address, uint8_t *byte); +const char *S9xGoldFingerToRaw (const char *code, uint32_t *address, bool *sram, + uint8_t *num_bytes, uint8_t bytes[3]); void S9xApplyCheats (); -void S9xApplyCheat (uint32 which1); +void S9xApplyCheat (uint32_t which1); void S9xRemoveCheats (); -void S9xRemoveCheat (uint32 which1); -void S9xEnableCheat (uint32 which1); -void S9xDisableCheat (uint32 which1); +void S9xRemoveCheat (uint32_t which1); +void S9xEnableCheat (uint32_t which1); +void S9xDisableCheat (uint32_t which1); void S9xDisableAllCheat(void); -void S9xAddCheat (bool8 enable, bool8 save_current_value, uint32 address, - uint8 byte); +void S9xAddCheat (bool enable, bool save_current_value, uint32_t address, + uint8_t byte); void S9xDeleteCheats (); -void S9xDeleteCheat (uint32 which1); -bool8 S9xLoadCheatFile (const char *filename); -bool8 S9xSaveCheatFile (const char *filename); +void S9xDeleteCheat (uint32_t which1); +bool S9xLoadCheatFile (const char *filename); +bool S9xSaveCheatFile (const char *filename); void S9xStartCheatSearch (SCheatData *cheats); void S9xSearchForChange (SCheatData *cheats, S9xCheatComparisonType cmp, - S9xCheatDataSize size, bool8 is_signed, bool8 update); + S9xCheatDataSize size, bool is_signed, bool update); void S9xSearchForValue (SCheatData *cheats, S9xCheatComparisonType cmp, - S9xCheatDataSize size, uint32 value, - bool8 is_signed, bool8 update); + S9xCheatDataSize size, uint32_t value, + bool is_signed, bool update); void S9xOutputCheatSearchResults (SCheatData *cheats); #endif |