summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
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/core.cpp
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/core.cpp')
-rw-r--r--src/core/core.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index d6cf44ce3..07448fd29 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -349,7 +349,7 @@ struct System::Impl {
349 } 349 }
350 350
351 Service::Glue::ApplicationLaunchProperty launch{}; 351 Service::Glue::ApplicationLaunchProperty launch{};
352 launch.title_id = process.GetTitleID(); 352 launch.title_id = process.GetProgramID();
353 353
354 FileSys::PatchManager pm{launch.title_id, fs_controller, *content_provider}; 354 FileSys::PatchManager pm{launch.title_id, fs_controller, *content_provider};
355 launch.version = pm.GetGameVersion().value_or(0); 355 launch.version = pm.GetGameVersion().value_or(0);
@@ -639,6 +639,10 @@ const Core::SpeedLimiter& System::SpeedLimiter() const {
639 return impl->speed_limiter; 639 return impl->speed_limiter;
640} 640}
641 641
642u64 System::GetCurrentProcessProgramID() const {
643 return impl->kernel.CurrentProcess()->GetProgramID();
644}
645
642Loader::ResultStatus System::GetGameName(std::string& out) const { 646Loader::ResultStatus System::GetGameName(std::string& out) const {
643 return impl->GetGameName(out); 647 return impl->GetGameName(out);
644} 648}