aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaël Zumer <rzumer@tebako.net>2019-12-10 20:28:40 -0500
committerRaphaël Zumer <rzumer@tebako.net>2019-12-18 23:35:14 -0500
commit8172cbc1706874651d227ce72d213fb636e506d4 (patch)
treec5d0d3e52a0992f577011bd0a23b9a05fc07f74d
parentf8e43ac486aa7bbc9ebfdbd23b959f0fa163c51d (diff)
Add DoSavestate() function to GBACart_SolarSensor
Still empty, but should be implemented along with the rest.
-rw-r--r--src/GBACart.cpp7
-rw-r--r--src/GBACart.h4
2 files changed, 11 insertions, 0 deletions
diff --git a/src/GBACart.cpp b/src/GBACart.cpp
index 7e5e3b5..1cca812 100644
--- a/src/GBACart.cpp
+++ b/src/GBACart.cpp
@@ -502,6 +502,8 @@ void Reset()
void DoSavestate(Savestate* file)
{
// TODO?
+ GBACart_SRAM::DoSavestate(file);
+ GBACart_SolarSensor::DoSavestate(file);
}
bool LoadROM(const char* path, const char* sram)
@@ -625,6 +627,11 @@ void Reset()
LightLevel = 0;
}
+void DoSavestate(Savestate* file)
+{
+ // TODO?
+}
+
void Process(GBACart::GPIO* gpio)
{
if (gpio->data & 4) return; // Boktai chip select
diff --git a/src/GBACart.h b/src/GBACart.h
index 032c4fc..fd26326 100644
--- a/src/GBACart.h
+++ b/src/GBACart.h
@@ -29,6 +29,9 @@ namespace GBACart_SRAM
extern u8* SRAM;
extern u32 SRAMLength;
+void Reset();
+void DoSavestate(Savestate* file);
+
u8 Read8(u32 addr);
u16 Read16(u32 addr);
u32 Read32(u32 addr);
@@ -74,6 +77,7 @@ namespace GBACart_SolarSensor
extern u8 LightLevel;
void Reset();
+void DoSavestate(Savestate* file);
void Process(GBACart::GPIO* gpio);
}