aboutsummaryrefslogtreecommitdiff
path: root/source/cheats.h
diff options
context:
space:
mode:
authorJoão Silva2017-01-16 22:39:57 +0000
committerJoão Silva2017-01-16 22:39:57 +0000
commitcbbfa871ae3d9db3852d9122a6d8355896c073ed (patch)
tree73e7755d117b8dd9eea499977c632727deb20d00 /source/cheats.h
parent7ed90abe19954aaf1fa56657a08e3cae4c8a67ce (diff)
downloadsnes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.gz
snes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.tar.bz2
snes9x2005-cbbfa871ae3d9db3852d9122a6d8355896c073ed.zip
Many cleanups.
Diffstat (limited to 'source/cheats.h')
-rw-r--r--source/cheats.h32
1 files changed, 15 insertions, 17 deletions
diff --git a/source/cheats.h b/source/cheats.h
index 86d4f96..a4a5ba7 100644
--- a/source/cheats.h
+++ b/source/cheats.h
@@ -13,26 +13,25 @@ typedef struct
uint32_t address;
uint8_t byte;
uint8_t saved_byte;
- bool enabled;
- bool saved;
- char name[MAX_SFCCHEAT_NAME];
-}SCheat;
-
+ bool enabled;
+ bool saved;
+ char name[MAX_SFCCHEAT_NAME];
+} SCheat;
typedef struct
{
SCheat c [MAX_CHEATS_T];
- 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;
+ 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
{
@@ -76,4 +75,3 @@ void S9xOutputCheatSearchResults (SCheatData *cheats);
#endif
#endif
-