diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 6 |
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 | ||
| 642 | u64 System::GetCurrentProcessProgramID() const { | ||
| 643 | return impl->kernel.CurrentProcess()->GetProgramID(); | ||
| 644 | } | ||
| 645 | |||
| 642 | Loader::ResultStatus System::GetGameName(std::string& out) const { | 646 | Loader::ResultStatus System::GetGameName(std::string& out) const { |
| 643 | return impl->GetGameName(out); | 647 | return impl->GetGameName(out); |
| 644 | } | 648 | } |