From 5af117e00cf35131cbc02af9f244340d1ddc7568 Mon Sep 17 00:00:00 2001 From: wwylele Date: Mon, 28 Nov 2016 23:47:41 +0200 Subject: FileSys: abstract SD save data archive source --- src/core/hle/service/fs/archive.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/hle') diff --git a/src/core/hle/service/fs/archive.cpp b/src/core/hle/service/fs/archive.cpp index 4c29784e8..a067e9262 100644 --- a/src/core/hle/service/fs/archive.cpp +++ b/src/core/hle/service/fs/archive.cpp @@ -535,7 +535,8 @@ void RegisterArchiveTypes() { sdmc_directory.c_str()); // Create the SaveData archive - auto savedata_factory = std::make_unique(sdmc_directory); + auto sd_savedata_source = std::make_shared(sdmc_directory); + auto savedata_factory = std::make_unique(sd_savedata_source); RegisterArchiveType(std::move(savedata_factory), ArchiveIdCode::SaveData); auto extsavedata_factory = -- cgit v1.2.3