summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-12-15 10:53:26 +0100
committerMerryMage <MerryMage@users.noreply.github.com>2016-12-15 10:59:41 +0100
commit40b0ea1086627e88c124f2ebfc6089183a5112b5 (patch)
tree1304d7fee908094b539993d9efccbb64a2dfeede
parentMerge pull request #2166 from endrift/clang-detect (diff)
downloadyuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar.gz
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar.bz2
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar.lz
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar.xz
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.tar.zst
yuzu-40b0ea1086627e88c124f2ebfc6089183a5112b5.zip
-rw-r--r--src/core/file_sys/archive_source_sd_savedata.cpp5
-rw-r--r--src/core/file_sys/archive_source_sd_savedata.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_source_sd_savedata.cpp b/src/core/file_sys/archive_source_sd_savedata.cpp
index 2d8a950a3..287322d3e 100644
--- a/src/core/file_sys/archive_source_sd_savedata.cpp
+++ b/src/core/file_sys/archive_source_sd_savedata.cpp
@@ -90,4 +90,9 @@ ResultVal<ArchiveFormatInfo> ArchiveSource_SDSaveData::GetFormatInfo(u64 program
return MakeResult<ArchiveFormatInfo>(info);
}
+std::string ArchiveSource_SDSaveData::GetSaveDataPathFor(const std::string& mount_point,
+ u64 program_id) {
+ return GetSaveDataPath(GetSaveDataContainerPath(mount_point), program_id);
+}
+
} // namespace FileSys
diff --git a/src/core/file_sys/archive_source_sd_savedata.h b/src/core/file_sys/archive_source_sd_savedata.h
index b33126c31..b5fe43cc1 100644
--- a/src/core/file_sys/archive_source_sd_savedata.h
+++ b/src/core/file_sys/archive_source_sd_savedata.h
@@ -23,6 +23,8 @@ public:
ResultCode Format(u64 program_id, const FileSys::ArchiveFormatInfo& format_info);
ResultVal<ArchiveFormatInfo> GetFormatInfo(u64 program_id) const;
+ static std::string GetSaveDataPathFor(const std::string& mount_point, u64 program_id);
+
private:
std::string mount_point;
};