aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/file_sys
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/archive_extsavedata.cpp4
-rw-r--r--src/core/file_sys/archive_extsavedata.h17
2 files changed, 19 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_extsavedata.cpp b/src/core/file_sys/archive_extsavedata.cpp
index 0805f42a..33e4e76f 100644
--- a/src/core/file_sys/archive_extsavedata.cpp
+++ b/src/core/file_sys/archive_extsavedata.cpp
@@ -17,7 +17,7 @@
namespace FileSys {
-static std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path) {
+std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path) {
std::vector<u8> vec_data = path.AsBinary();
const u32* data = reinterpret_cast<const u32*>(vec_data.data());
u32 save_low = data[1];
@@ -25,7 +25,7 @@ static std::string GetExtSaveDataPath(const std::string& mount_point, const Path
return Common::StringFromFormat("%s%08X/%08X/", mount_point.c_str(), save_high, save_low);
}
-static std::string GetExtDataContainerPath(const std::string& mount_point, bool shared) {
+std::string GetExtDataContainerPath(const std::string& mount_point, bool shared) {
if (shared)
return Common::StringFromFormat("%sdata/%s/extdata/", mount_point.c_str(), SYSTEM_ID.c_str());
diff --git a/src/core/file_sys/archive_extsavedata.h b/src/core/file_sys/archive_extsavedata.h
index fb7f209d..802a11b5 100644
--- a/src/core/file_sys/archive_extsavedata.h
+++ b/src/core/file_sys/archive_extsavedata.h
@@ -42,4 +42,21 @@ protected:
std::string concrete_mount_point;
};
+/**
+ * Constructs a path to the concrete ExtData archive in the host filesystem based on the
+ * input Path and base mount point.
+ * @param mount_point The base mount point of the ExtSaveData archives.
+ * @param path The path that identifies the requested concrete ExtSaveData archive.
+ * @returns The complete path to the specified extdata archive in the host filesystem
+ */
+std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path);
+
+/**
+ * Constructs a path to the base folder to hold concrete ExtSaveData archives in the host file system.
+ * @param mount_point The base folder where this folder resides, ie. SDMC or NAND.
+ * @param shared Whether this ExtSaveData container is for SharedExtSaveDatas or not.
+ * @returns The path to the base ExtSaveData archives' folder in the host file system
+ */
+std::string GetExtDataContainerPath(const std::string& mount_point, bool shared);
+
} // namespace FileSys