mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 05:57:46 +00:00
Archives: Properly implemented the SystemSaveData archive.
Ported to the new factory pattern we have for archives.
This commit is contained in:
parent
3700263f71
commit
9db5c9b6dc
4 changed files with 70 additions and 45 deletions
|
@ -15,17 +15,17 @@
|
|||
namespace FileSys {
|
||||
|
||||
/// File system interface to the SystemSaveData archive
|
||||
class Archive_SystemSaveData final : public DiskArchive {
|
||||
class ArchiveFactory_SystemSaveData final : public ArchiveFactory {
|
||||
public:
|
||||
Archive_SystemSaveData(const std::string& mount_point, u64 save_id);
|
||||
ArchiveFactory_SystemSaveData(const std::string& mount_point);
|
||||
|
||||
/**
|
||||
* Initialize the archive.
|
||||
* @return true if it initialized successfully
|
||||
*/
|
||||
bool Initialize();
|
||||
ResultVal<std::unique_ptr<ArchiveBackend>> Open(const Path& path) override;
|
||||
ResultCode Format(const Path& path) override;
|
||||
|
||||
std::string GetName() const override { return "SystemSaveData"; }
|
||||
|
||||
private:
|
||||
std::string base_path;
|
||||
};
|
||||
|
||||
} // namespace FileSys
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue