summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar tech4me2018-08-20 21:46:40 -0700
committerGravatar tech4me2018-08-21 02:04:33 -0700
commitcc71832b19ed9d3579160ddb8fe6e4f9a8269553 (patch)
treeb92c24231393ccc10544b2fddef8017f8d7023e1 /src/core
parentMerge pull request #1123 from lioncash/screen (diff)
downloadyuzu-cc71832b19ed9d3579160ddb8fe6e4f9a8269553.tar.gz
yuzu-cc71832b19ed9d3579160ddb8fe6e4f9a8269553.tar.xz
yuzu-cc71832b19ed9d3579160ddb8fe6e4f9a8269553.zip
qt/main: Port part of citra(#3411), open savedata works
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
73} 73}
74 74
75std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id, 75std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id,
76 u128 user_id, u64 save_id) const { 76 u128 user_id, u64 save_id) {
77 // According to switchbrew, if a save is of type SaveData and the title id field is 0, it should 77 // According to switchbrew, if a save is of type SaveData and the title id field is 0, it should
78 // be interpreted as the title id of the current process. 78 // be interpreted as the title id of the current process.
79 if (type == SaveDataType::SaveData && title_id == 0) 79 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:
49 49
50 ResultVal<VirtualDir> Open(SaveDataSpaceId space, SaveDataDescriptor meta); 50 ResultVal<VirtualDir> Open(SaveDataSpaceId space, SaveDataDescriptor meta);
51 51
52 static std::string GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id,
53 u128 user_id, u64 save_id);
54
52private: 55private:
53 VirtualDir dir; 56 VirtualDir dir;
54
55 std::string GetFullPath(SaveDataSpaceId space, SaveDataType type, u64 title_id, u128 user_id,
56 u64 save_id) const;
57}; 57};
58 58
59} // namespace FileSys 59} // namespace FileSys