mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Starting work on (Shared)ExtSaveData archive
This commit is contained in:
parent
bbb62a83d0
commit
79c89f1f63
8 changed files with 48 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include "fs/archive_ext_save_data.hpp"
|
||||
#include "fs/archive_ncch.hpp"
|
||||
#include "fs/archive_save_data.hpp"
|
||||
#include "fs/archive_sdmc.hpp"
|
||||
|
@ -20,6 +21,7 @@ class FSService {
|
|||
// The different filesystem archives (Save data, RomFS+ExeFS, etc)
|
||||
SelfNCCHArchive selfNcch;
|
||||
SaveDataArchive saveData;
|
||||
ExtSaveDataArchive sharedExtSaveData;
|
||||
SDMCArchive sdmc;
|
||||
|
||||
ArchiveBase* getArchiveFromID(u32 id);
|
||||
|
@ -41,7 +43,12 @@ class FSService {
|
|||
u32 priority;
|
||||
|
||||
public:
|
||||
FSService(Memory& mem, Kernel& kernel) : mem(mem), saveData(mem), sdmc(mem), selfNcch(mem), kernel(kernel) {}
|
||||
FSService(Memory& mem, Kernel& kernel) : mem(mem), saveData(mem), sharedExtSaveData(mem), sdmc(mem), selfNcch(mem),
|
||||
kernel(kernel)
|
||||
{
|
||||
sharedExtSaveData.isShared = true; // Need to do this here because templates and virtual classes do not mix well
|
||||
}
|
||||
|
||||
void reset();
|
||||
void handleSyncRequest(u32 messagePointer);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue