aboutsummaryrefslogtreecommitdiff
path: root/src/Platform.h
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2023-11-03 20:17:00 +0100
committerArisotura <thetotalworm@gmail.com>2023-11-03 20:17:00 +0100
commit440b3566745bbf967210bd6c51e791e1df472ff2 (patch)
tree75d630f0915159348899f1e445d06f7270210499 /src/Platform.h
parent70c6750561b0c130b430e2ec3d076708b3767674 (diff)
get this started: refactor SPI in OOP
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 144fce1..7fa8fbd 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -24,10 +24,7 @@
#include <functional>
#include <string>
-namespace SPI_Firmware
-{
- class Firmware;
-}
+class Firmware;
namespace Platform
{
@@ -335,7 +332,7 @@ void WriteGBASave(const u8* savedata, u32 savelen, u32 writeoffset, u32 writelen
/// @param firmware The firmware that was just written.
/// @param writeoffset The offset of the first byte that was written to firmware.
/// @param writelen The number of bytes that were written to firmware.
-void WriteFirmware(const SPI_Firmware::Firmware& firmware, u32 writeoffset, u32 writelen);
+void WriteFirmware(const Firmware& firmware, u32 writeoffset, u32 writelen);
// called when the RTC date/time is changed and the frontend might need to take it into account
void WriteDateTime(int year, int month, int day, int hour, int minute, int second);