all repos — mgba @ 18e67378fe24815ab76ed97fd5f1497e0a9d3e6a

mGBA Game Boy Advance Emulator

C++ build fixes
Jeffrey Pfau jeffrey@endrift.com
Tue, 14 Oct 2014 01:48:56 -0700
commit

18e67378fe24815ab76ed97fd5f1497e0a9d3e6a

parent

65ce79c6110df10e26c50083b728944349eed464

2 files changed, 14 insertions(+), 12 deletions(-)

jump to
M src/gba/gba-serialize.hsrc/gba/gba-serialize.h

@@ -5,7 +5,7 @@ #include "util/common.h"

#include "gba.h" -const uint32_t GBA_SAVESTATE_MAGIC; +extern const uint32_t GBA_SAVESTATE_MAGIC; /* Savestate format: * 0x00000 - 0x00003: Version Magic (0x01000000)
M src/gba/gba.hsrc/gba/gba.h

@@ -66,6 +66,18 @@ struct GBARotationSource;

struct Patch; struct VFile; +struct GBATimer { + uint16_t reload; + uint16_t oldReload; + int32_t lastEvent; + int32_t nextEvent; + int32_t overflowInterval; + unsigned prescaleBits : 4; + unsigned countUp : 1; + unsigned doIrq : 1; + unsigned enable : 1; +}; + struct GBA { struct ARMComponent d;

@@ -80,17 +92,7 @@

struct ARMDebugger* debugger; int timersEnabled; - struct GBATimer { - uint16_t reload; - uint16_t oldReload; - int32_t lastEvent; - int32_t nextEvent; - int32_t overflowInterval; - unsigned prescaleBits : 4; - unsigned countUp : 1; - unsigned doIrq : 1; - unsigned enable : 1; - } timers[4]; + struct GBATimer timers[4]; int springIRQ; uint32_t biosChecksum;