summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-22 07:30:08 +0200
committerGitHub <noreply@github.com>2018-08-22 07:30:08 +0200
commitb38d67d940ddd4c03d833dc443126609e0981987 (patch)
treefaf5f641c5d21df58b18fd22f1ece2af6f964083 /src/core
parentMerge pull request #840 from FearlessTobi/port-3353 (diff)
parentqt/main: Port part of citra(#3411), open savedata works (diff)
downloadyuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar.gz
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar.bz2
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar.lz
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar.xz
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.tar.zst
yuzu-b38d67d940ddd4c03d833dc443126609e0981987.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/savedata_factory.cpp2
-rw-r--r--src/core/file_sys/savedata_factory.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp
index dfdca83d6..034d3a78f 100644
--- a/src/core/file_sys/savedata_factory.cpp
+++ b/src/core/file_sys/savedata_factory.cpp
@@ -73,7 +73,7 @@ ResultVal<VirtualDir> SaveDataFactory::Open(SaveDataSpaceId space, SaveDataDescr
}
std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id,
- u128 user_id, u64 save_id) const {
+ u128 user_id, u64 save_id) {
// According to switchbrew, if a save is of type SaveData and the title id field is 0, it should
// be interpreted as the title id of the current process.
if (type == SaveDataType::SaveData && title_id == 0)
diff --git a/src/core/file_sys/savedata_factory.h b/src/core/file_sys/savedata_factory.h
index f3cf50d5a..368b36017 100644
--- a/src/core/file_sys/savedata_factory.h
+++ b/src/core/file_sys/savedata_factory.h
@@ -49,11 +49,11 @@ public:
ResultVal<VirtualDir> Open(SaveDataSpaceId space, SaveDataDescriptor meta);
+ static std::string GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id,
+ u128 user_id, u64 save_id);
+
private:
VirtualDir dir;
-
- std::string GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id, u128 user_id,
- u64 save_id) const;
};
} // namespace FileSys