am: Implement GetSaveDataSize and ExtendSaveData

These functions come in a pair and are needed by Smash Ultimate, Minecraft, and Skyrim, amongst others.
This commit is contained in:
Zach Hilman 2018-12-10 22:17:45 -05:00
parent 2e6b67a079
commit c643f364b4
6 changed files with 53 additions and 8 deletions

View file

@ -36,7 +36,7 @@ std::string LanguageEntry::GetDeveloperName() const {
developer_name.size());
}
NACP::NACP() : raw{} {}
NACP::NACP() = default;
NACP::NACP(VirtualFile file) {
file->ReadObject(&raw);

View file

@ -100,7 +100,7 @@ public:
std::vector<u8> GetRawBytes() const;
private:
RawNACP raw;
RawNACP raw{};
};
} // namespace FileSys

View file

@ -13,7 +13,7 @@
namespace FileSys {
constexpr const char* SAVE_DATA_SIZE_FILENAME = ".yuzu_save_size";
constexpr char SAVE_DATA_SIZE_FILENAME[] = ".yuzu_save_size";
std::string SaveDataDescriptor::DebugInfo() const {
return fmt::format("[type={:02X}, title_id={:016X}, user_id={:016X}{:016X}, save_id={:016X}]",