Files
threeSD/src/core/savegame.h
T
Pengfei c81db424bb Refactor InnerFAT into Savegame and Extdata
And derive TitleDB from it too.
2021-07-06 16:11:03 +08:00

31 lines
674 B
C++

// Copyright 2021 threeSD Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include "core/inner_fat.hpp"
namespace Core {
class Savegame final : public Archive<Savegame> {
public:
explicit Savegame(std::vector<std::vector<u8>> partitions);
~Savegame();
bool IsGood() const;
bool Extract(std::string path) const;
private:
bool CheckMagic() const;
bool ExtractFile(const std::string& path, std::size_t index) const;
ArchiveFormatInfo GetFormatInfo() const;
bool is_good = false;
friend class Archive<Savegame>;
friend class InnerFAT<Savegame>;
};
} // namespace Core