summaryrefslogtreecommitdiff
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorGravatar Morph2021-11-04 20:34:20 -0400
committerGravatar GitHub2021-11-04 20:34:20 -0400
commit3a71ff44f82304b3e781c89fb60bd87c2c7afa3c (patch)
tree2244cf6a21d45b6bbb5c57d77e154c130e415961 /src/core/file_sys
parentMerge pull request #7289 from ameerj/perf-stat-shutdown (diff)
parentgeneral: Get the current process program id directly from the system (diff)
downloadyuzu-3a71ff44f82304b3e781c89fb60bd87c2c7afa3c.tar.gz
yuzu-3a71ff44f82304b3e781c89fb60bd87c2c7afa3c.tar.xz
yuzu-3a71ff44f82304b3e781c89fb60bd87c2c7afa3c.zip
Merge pull request #7279 from Morph1984/system-get-program-id
general: Get the current process program id directly from the system
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/savedata_factory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/file_sys/savedata_factory.cpp b/src/core/file_sys/savedata_factory.cpp
index 0c8ec4ba2..e6f8514c9 100644
--- a/src/core/file_sys/savedata_factory.cpp
+++ b/src/core/file_sys/savedata_factory.cpp
@@ -9,7 +9,6 @@
9#include "core/core.h" 9#include "core/core.h"
10#include "core/file_sys/savedata_factory.h" 10#include "core/file_sys/savedata_factory.h"
11#include "core/file_sys/vfs.h" 11#include "core/file_sys/vfs.h"
12#include "core/hle/kernel/k_process.h"
13 12
14namespace FileSys { 13namespace FileSys {
15 14
@@ -143,7 +142,7 @@ std::string SaveDataFactory::GetFullPath(Core::System& system, SaveDataSpaceId s
143 // be interpreted as the title id of the current process. 142 // be interpreted as the title id of the current process.
144 if (type == SaveDataType::SaveData || type == SaveDataType::DeviceSaveData) { 143 if (type == SaveDataType::SaveData || type == SaveDataType::DeviceSaveData) {
145 if (title_id == 0) { 144 if (title_id == 0) {
146 title_id = system.CurrentProcess()->GetTitleID(); 145 title_id = system.GetCurrentProcessProgramID();
147 } 146 }
148 } 147 }
149 148