2015-01-01 18:39:27 +01:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2015-06-21 16:44:11 +02:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
2015-01-01 18:39:27 +01:00
|
|
|
|
2015-06-21 16:44:11 +02:00
|
|
|
#include "core/file_sys/archive_backend.h"
|
|
|
|
#include "core/hle/result.h"
|
2015-01-01 18:39:27 +01:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// FileSys namespace
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
|
|
|
/// File system interface to the SaveDataCheck archive
|
2015-02-06 14:53:14 +01:00
|
|
|
class ArchiveFactory_SaveDataCheck final : public ArchiveFactory {
|
2015-01-01 18:39:27 +01:00
|
|
|
public:
|
2015-02-06 14:53:14 +01:00
|
|
|
ArchiveFactory_SaveDataCheck(const std::string& mount_point);
|
2015-01-01 18:39:27 +01:00
|
|
|
|
|
|
|
std::string GetName() const override { return "SaveDataCheck"; }
|
2015-02-06 14:53:14 +01:00
|
|
|
|
|
|
|
ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override;
|
|
|
|
ResultCode Format(const Path& path) override;
|
2015-01-01 18:39:27 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
std::string mount_point;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace FileSys
|