mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-21 14:23:00 +12:00
Partially implement ExtSaveData
This commit is contained in:
parent
24705fe67e
commit
a4e44cf060
5 changed files with 188 additions and 30 deletions
|
@ -228,9 +228,19 @@ public:
|
|||
return Ok(FormatInfo{ .size = 0, .numOfDirectories = 0, .numOfFiles = 0, .duplicateData = false });
|
||||
}
|
||||
|
||||
virtual HorizonResult createDirectory(const FSPath& path) {
|
||||
Helpers::panic("Unimplemented CreateDirectory for %s archive", name().c_str());
|
||||
return Result::FS::AlreadyExists;
|
||||
virtual HorizonResult createDirectory(const FSPath& path) {
|
||||
Helpers::panic("Unimplemented CreateDirectory for %s archive", name().c_str());
|
||||
return Result::FS::AlreadyExists;
|
||||
}
|
||||
|
||||
virtual HorizonResult deleteDirectory(const FSPath& path) {
|
||||
Helpers::warn("Stubbed DeleteDirectory for %s archive", name().c_str());
|
||||
return Result::Success;
|
||||
}
|
||||
|
||||
virtual HorizonResult deleteDirectoryRecursively(const FSPath& path) {
|
||||
Helpers::warn("Stubbed DeleteDirectoryRecursively for %s archive", name().c_str());
|
||||
return Result::Success;
|
||||
}
|
||||
|
||||
// Returns nullopt if opening the file failed, otherwise returns a file descriptor to it (nullptr if none is needed)
|
||||
|
@ -263,4 +273,4 @@ struct ArchiveResource {
|
|||
u32 clusterSize; // Size of a cluster in bytes
|
||||
u32 partitionCapacityInClusters;
|
||||
u32 freeSpaceInClusters;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue