Fail and warn if an amiibo is loaded at the wrong time

This commit is contained in:
wheremyfoodat 2023-09-09 01:52:28 +03:00
parent 72ae5d2bfa
commit cf54fd6d1d
2 changed files with 12 additions and 0 deletions

View file

@ -18,6 +18,11 @@ public:
FileDescriptor openFile(const FSPath& path, const FilePerms& perms) override;
std::optional<u32> readFile(FileSession* file, u64 offset, u32 size, u32 dataPointer) override;
Rust::Result<FormatInfo, HorizonResult> getFormatInfo(const FSPath& path) override {
Helpers::warn("Stubbed ExtSaveData::GetFormatInfo");
return Ok(FormatInfo{.size = 1_GB, .numOfDirectories = 255, .numOfFiles = 255, .duplicateData = false});
}
// Takes in a binary ExtSaveData path, outputs a combination of the backing folder with the low and high save entries of the path
// Used for identifying the archive format info files
std::string getExtSaveDataPathFromBinary(const FSPath& path);