archive_systemsavedata.h 948 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2014 Citra Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include "common/common_types.h"
  6. #include "core/file_sys/disk_archive.h"
  7. #include "core/loader/loader.h"
  8. ////////////////////////////////////////////////////////////////////////////////////////////////////
  9. // FileSys namespace
  10. namespace FileSys {
  11. /// File system interface to the SystemSaveData archive
  12. /// TODO(Subv): This archive should point to a location in the NAND,
  13. /// specifically nand:/data/<ID0>/sysdata/<SaveID-Low>/<SaveID-High>
  14. class Archive_SystemSaveData final : public DiskArchive {
  15. public:
  16. Archive_SystemSaveData(const std::string& mount_point, u64 save_id);
  17. /**
  18. * Initialize the archive.
  19. * @return true if it initialized successfully
  20. */
  21. bool Initialize();
  22. std::string GetName() const override { return "SystemSaveData"; }
  23. };
  24. } // namespace FileSys