aboutsummaryrefslogtreecommitdiff
path: root/src/NDSCart.h
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2021-10-28 18:47:13 +0200
committerGitHub <noreply@github.com>2021-10-28 18:47:13 +0200
commitff3f661bb54dcb31e2533967aa231d827d2be4b7 (patch)
treef6b9d4ea0fc42f234bb1dd4f1dc6b0db9069333e /src/NDSCart.h
parenta8613af2bd3ba0cc9d52b6a5d63899cda7ca2864 (diff)
DLDI/SD folder-sync apparatus (#1251)
guess we can finally have DLDI that isn't obtuse
Diffstat (limited to 'src/NDSCart.h')
-rw-r--r--src/NDSCart.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/NDSCart.h b/src/NDSCart.h
index ecfb209..9f39988 100644
--- a/src/NDSCart.h
+++ b/src/NDSCart.h
@@ -21,6 +21,7 @@
#include "types.h"
#include "NDS_Header.h"
+#include "FATStorage.h"
namespace NDSCart
{
@@ -171,6 +172,7 @@ public:
~CartHomebrew() override;
void Reset() override;
+ void SetupDirectBoot() override;
void DoSavestate(Savestate* file) override;
@@ -178,10 +180,11 @@ public:
void ROMCommandFinish(u8* cmd, u8* data, u32 len) override;
private:
- void ApplyDLDIPatch(const u8* patch, u32 len);
+ void ApplyDLDIPatch(const u8* patch, u32 patchlen, bool readonly);
void ReadROM_B7(u32 addr, u32 len, u8* data, u32 offset);
- FILE* SDFile;
+ FATStorage* SD;
+ bool ReadOnly;
};
extern u16 SPICnt;