mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-31 10:09:46 -06:00
committing WIP. won't build or anything.
This commit is contained in:
@ -19,6 +19,8 @@
|
||||
#ifndef NDSCART_H
|
||||
#define NDSCART_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "types.h"
|
||||
#include "NDS_Header.h"
|
||||
#include "FATStorage.h"
|
||||
@ -34,14 +36,15 @@ public:
|
||||
virtual ~CartCommon();
|
||||
|
||||
virtual void Reset();
|
||||
virtual void SetupDirectBoot();
|
||||
virtual void SetupDirectBoot(std::string romname);
|
||||
|
||||
virtual void DoSavestate(Savestate* file);
|
||||
|
||||
virtual void LoadSave(const char* path, u32 type);
|
||||
virtual void RelocateSave(const char* path, bool write);
|
||||
virtual int ImportSRAM(const u8* data, u32 length);
|
||||
virtual void FlushSRAMFile();
|
||||
virtual void SetupSave(u32 type);
|
||||
virtual void LoadSave(const u8* savedata, u32 savelen);
|
||||
//virtual void RelocateSave(const char* path, bool write);
|
||||
//virtual int ImportSRAM(const u8* data, u32 length);
|
||||
//virtual void FlushSRAMFile();
|
||||
|
||||
virtual int ROMCommandStart(u8* cmd, u8* data, u32 len);
|
||||
virtual void ROMCommandFinish(u8* cmd, u8* data, u32 len);
|
||||
@ -75,10 +78,11 @@ public:
|
||||
|
||||
virtual void DoSavestate(Savestate* file) override;
|
||||
|
||||
virtual void LoadSave(const char* path, u32 type) override;
|
||||
virtual void RelocateSave(const char* path, bool write) override;
|
||||
virtual int ImportSRAM(const u8* data, u32 length) override;
|
||||
virtual void FlushSRAMFile() override;
|
||||
virtual void SetupSave(u32 type) override;
|
||||
virtual void LoadSave(const u8* savedata, u32 savelen) override;
|
||||
//virtual void RelocateSave(const char* path, bool write) override;
|
||||
//virtual int ImportSRAM(const u8* data, u32 length) override;
|
||||
//virtual void FlushSRAMFile() override;
|
||||
|
||||
virtual int ROMCommandStart(u8* cmd, u8* data, u32 len) override;
|
||||
|
||||
@ -114,8 +118,8 @@ public:
|
||||
|
||||
void DoSavestate(Savestate* file) override;
|
||||
|
||||
void LoadSave(const char* path, u32 type) override;
|
||||
int ImportSRAM(const u8* data, u32 length) override;
|
||||
void LoadSave(const u8* savedata, u32 savelen) override;
|
||||
//int ImportSRAM(const u8* data, u32 length) override;
|
||||
|
||||
int ROMCommandStart(u8* cmd, u8* data, u32 len) override;
|
||||
void ROMCommandFinish(u8* cmd, u8* data, u32 len) override;
|
||||
@ -172,7 +176,7 @@ public:
|
||||
~CartHomebrew() override;
|
||||
|
||||
void Reset() override;
|
||||
void SetupDirectBoot() override;
|
||||
void SetupDirectBoot(std::string romname) override;
|
||||
|
||||
void DoSavestate(Savestate* file) override;
|
||||
|
||||
@ -207,14 +211,18 @@ void Reset();
|
||||
void DoSavestate(Savestate* file);
|
||||
|
||||
void DecryptSecureArea(u8* out);
|
||||
bool LoadROM(const char* path, const char* sram, bool direct);
|
||||
bool LoadROM(const u8* romdata, u32 filelength, const char *sram, bool direct);
|
||||
//bool LoadROM(const char* path, const char* sram, bool direct);
|
||||
//bool LoadROM(const u8* romdata, u32 filelength, const char *sram, bool direct);
|
||||
|
||||
void FlushSRAMFile();
|
||||
bool LoadROM(const u8* romdata, u32 romlen);
|
||||
void LoadSave(const u8* savedata, u32 savelen);
|
||||
void SetupDirectBoot(std::string romname);
|
||||
|
||||
void RelocateSave(const char* path, bool write);
|
||||
//void FlushSRAMFile();
|
||||
|
||||
int ImportSRAM(const u8* data, u32 length);
|
||||
//void RelocateSave(const char* path, bool write);
|
||||
|
||||
//int ImportSRAM(const u8* data, u32 length);
|
||||
|
||||
void ResetCart();
|
||||
|
||||
|
Reference in New Issue
Block a user