diff options
author | Lioncash <mathew1800@gmail.com> | 2019-10-06 19:51:31 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-10-06 19:53:12 +0200 |
commit | f1382cf0e7180cd31505ee89e774cc93bde6211e (patch) | |
tree | c732e422a882f0e40e42094533546b32e61d56c2 /src/core/file_sys/savedata_factory.cpp | |
parent | hle/service: Replace global system instance calls with instance-based ones (diff) | |
download | yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar.gz yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar.bz2 yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar.lz yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar.xz yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.tar.zst yuzu-f1382cf0e7180cd31505ee89e774cc93bde6211e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/savedata_factory.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp index f77cc02ac..fc8755c78 100644 --- a/src/core/file_sys/savedata_factory.cpp +++ b/src/core/file_sys/savedata_factory.cpp @@ -127,8 +127,9 @@ std::string SaveDataFactory::GetFullPath(SaveDataSpaceId space, SaveDataType typ 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) - title_id = Core::CurrentProcess()->GetTitleID(); + if (type == SaveDataType::SaveData && title_id == 0) { + title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID(); + } std::string out = GetSaveDataSpaceIdPath(space); |