// 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 { public: explicit Savegame(std::vector> 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; friend class InnerFAT; }; } // namespace Core