diff options
author | aliaspider | 2015-11-09 19:55:28 +0100 |
---|---|---|
committer | aliaspider | 2015-11-09 19:55:28 +0100 |
commit | 7a7857f47b33f1b63fb585d2dc6c60d87c3e928f (patch) | |
tree | a4c271ae26c4b5ec9566f37062168e6d2c8c1bbc /src/snes9x.h | |
parent | 5339c79ebd36afa759541d0c2fbdadac6dd26ed2 (diff) | |
download | snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.tar.gz snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.tar.bz2 snes9x2002-7a7857f47b33f1b63fb585d2dc6c60d87c3e928f.zip |
C++ --> C99
Diffstat (limited to 'src/snes9x.h')
-rw-r--r-- | src/snes9x.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/snes9x.h b/src/snes9x.h index 787b60d..8a37095 100644 --- a/src/snes9x.h +++ b/src/snes9x.h @@ -199,13 +199,14 @@ enum { #undef MEMMAP_NUM_BLOCKS
#define MEMMAP_NUM_BLOCKS (0x1000000 / MEMMAP_BLOCK_SIZE)
-struct SCPUState{
+typedef struct
+{
uint32 Flags; //0
bool8 BranchSkip; //4
bool8 NMIActive; //5
bool8 IRQActive; //6
bool8 WaitingForInterrupt; //7
- struct SRegisters Regs; //8
+ SRegisters Regs; //8
//uint8 PB; //8 --> status
//uint8 DB; //9
//pair P; //10
@@ -254,7 +255,7 @@ struct SCPUState{ void *DSPGet;
void *DSPSet;
int32 rstatus;
-};
+}SCPUState;
#define HBLANK_START_EVENT 0
@@ -263,7 +264,8 @@ struct SCPUState{ #define HTIMER_AFTER_EVENT 3
#define NO_EVENT 4
-struct SSettings{
+typedef struct
+{
// CPU options
bool8 APUEnabled;
bool8 Shutdown;
@@ -398,9 +400,9 @@ struct SSettings{ #ifdef __WIN32__
int SoundDriver;
#endif
-};
+}SSettings;
-struct SSNESGameFixes
+typedef struct
{
uint8 NeedInit0x2137;
uint8 umiharakawaseFix;
@@ -414,12 +416,12 @@ struct SSNESGameFixes uint8 Uniracers;
uint8 Flintstones;
uint8 Mode7Hack;
-};
+}SSNESGameFixes;
START_EXTERN_C
-extern struct SSettings Settings;
-extern struct SCPUState CPU;
-extern struct SSNESGameFixes SNESGameFixes;
+extern SSettings Settings;
+extern SCPUState CPU;
+extern SSNESGameFixes SNESGameFixes;
extern char String [513];
void S9xExit ();
|