aboutsummaryrefslogtreecommitdiff
path: root/source/cheats.h
diff options
context:
space:
mode:
authorAlcaro2017-01-17 00:37:18 +0100
committerGitHub2017-01-17 00:37:18 +0100
commit6e9a6c9b040035cdc7d015b8bdb21e920c811dca (patch)
tree73e7755d117b8dd9eea499977c632727deb20d00 /source/cheats.h
parent7ed90abe19954aaf1fa56657a08e3cae4c8a67ce (diff)
parentcbbfa871ae3d9db3852d9122a6d8355896c073ed (diff)
downloadsnes9x2005-6e9a6c9b040035cdc7d015b8bdb21e920c811dca.tar.gz
snes9x2005-6e9a6c9b040035cdc7d015b8bdb21e920c811dca.tar.bz2
snes9x2005-6e9a6c9b040035cdc7d015b8bdb21e920c811dca.zip
Merge pull request #26 from jamsilva/master
Cleanups v2
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
-