aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/archive_systemsavedata.cpp
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2016-10-17 14:54:48 +0800
committerwwylele <wwylele@gmail.com>2016-11-19 17:17:19 +0200
commit420091d0e53a4036379e530f6d816f4a5cfbf4aa (patch)
treeb65665c71cc0fb5dfff8ba64d1a64898ec8571fd /src/core/file_sys/archive_systemsavedata.cpp
parent1e33d07b860b33c19c444a4ca0e58cbc7044e85a (diff)
FileSys: add SaveDataArchive
The error checking of SaveDataArchive is completely different from DiskArchive, so it has to be a new class instead of a subclass of DiskArchive.
Diffstat (limited to 'src/core/file_sys/archive_systemsavedata.cpp')
-rw-r--r--src/core/file_sys/archive_systemsavedata.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cpp
index 48ebc0ed49..54e7793e09 100644
--- a/src/core/file_sys/archive_systemsavedata.cpp
+++ b/src/core/file_sys/archive_systemsavedata.cpp
@@ -9,7 +9,7 @@
#include "common/file_util.h"
#include "common/string_util.h"
#include "core/file_sys/archive_systemsavedata.h"
-#include "core/file_sys/disk_archive.h"
+#include "core/file_sys/savedata_archive.h"
#include "core/hle/service/fs/archive.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -56,7 +56,7 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_SystemSaveData::Open(c
return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS,
ErrorSummary::InvalidState, ErrorLevel::Status);
}
- auto archive = std::make_unique<DiskArchive>(fullpath);
+ auto archive = std::make_unique<SaveDataArchive>(fullpath);
return MakeResult<std::unique_ptr<ArchiveBackend>>(std::move(archive));
}