diff options
Diffstat (limited to 'src')
25 files changed, 48 insertions, 59 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 | } |
diff --git a/src/core/core.h b/src/core/core.h index 1cfe1bba6..01bc0a2c7 100644 --- a/src/core/core.h +++ b/src/core/core.h | |||
| @@ -297,6 +297,8 @@ public: | |||
| 297 | /// Provides a constant reference to the speed limiter | 297 | /// Provides a constant reference to the speed limiter |
| 298 | [[nodiscard]] const Core::SpeedLimiter& SpeedLimiter() const; | 298 | [[nodiscard]] const Core::SpeedLimiter& SpeedLimiter() const; |
| 299 | 299 | ||
| 300 | [[nodiscard]] u64 GetCurrentProcessProgramID() const; | ||
| 301 | |||
| 300 | /// Gets the name of the current game | 302 | /// Gets the name of the current game |
| 301 | [[nodiscard]] Loader::ResultStatus GetGameName(std::string& out) const; | 303 | [[nodiscard]] Loader::ResultStatus GetGameName(std::string& out) const; |
| 302 | 304 | ||
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 | ||
| 14 | namespace FileSys { | 13 | namespace 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 | ||
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index 76ece119f..8a8c1fcbb 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h | |||
| @@ -154,8 +154,8 @@ public: | |||
| 154 | return process_id; | 154 | return process_id; |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | /// Gets the title ID corresponding to this process. | 157 | /// Gets the program ID corresponding to this process. |
| 158 | u64 GetTitleID() const { | 158 | u64 GetProgramID() const { |
| 159 | return program_id; | 159 | return program_id; |
| 160 | } | 160 | } |
| 161 | 161 | ||
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index fbfe6fc1a..f9d99bc51 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp | |||
| @@ -768,7 +768,7 @@ static ResultCode GetInfo(Core::System& system, u64* result, u64 info_id, Handle | |||
| 768 | return ResultSuccess; | 768 | return ResultSuccess; |
| 769 | 769 | ||
| 770 | case GetInfoType::TitleId: | 770 | case GetInfoType::TitleId: |
| 771 | *result = process->GetTitleID(); | 771 | *result = process->GetProgramID(); |
| 772 | return ResultSuccess; | 772 | return ResultSuccess; |
| 773 | 773 | ||
| 774 | case GetInfoType::UserExceptionContextAddr: | 774 | case GetInfoType::UserExceptionContextAddr: |
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp index 4af2c3a8d..6e63e057e 100644 --- a/src/core/hle/service/acc/acc.cpp +++ b/src/core/hle/service/acc/acc.cpp | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include "core/file_sys/control_metadata.h" | 16 | #include "core/file_sys/control_metadata.h" |
| 17 | #include "core/file_sys/patch_manager.h" | 17 | #include "core/file_sys/patch_manager.h" |
| 18 | #include "core/hle/ipc_helpers.h" | 18 | #include "core/hle/ipc_helpers.h" |
| 19 | #include "core/hle/kernel/k_process.h" | ||
| 20 | #include "core/hle/kernel/kernel.h" | 19 | #include "core/hle/kernel/kernel.h" |
| 21 | #include "core/hle/service/acc/acc.h" | 20 | #include "core/hle/service/acc/acc.h" |
| 22 | #include "core/hle/service/acc/acc_aa.h" | 21 | #include "core/hle/service/acc/acc_aa.h" |
| @@ -759,9 +758,8 @@ ResultCode Module::Interface::InitializeApplicationInfoBase() { | |||
| 759 | // TODO(ogniK): This should be changed to reflect the target process for when we have multiple | 758 | // TODO(ogniK): This should be changed to reflect the target process for when we have multiple |
| 760 | // processes emulated. As we don't actually have pid support we should assume we're just using | 759 | // processes emulated. As we don't actually have pid support we should assume we're just using |
| 761 | // our own process | 760 | // our own process |
| 762 | const auto& current_process = system.Kernel().CurrentProcess(); | ||
| 763 | const auto launch_property = | 761 | const auto launch_property = |
| 764 | system.GetARPManager().GetLaunchProperty(current_process->GetTitleID()); | 762 | system.GetARPManager().GetLaunchProperty(system.GetCurrentProcessProgramID()); |
| 765 | 763 | ||
| 766 | if (launch_property.Failed()) { | 764 | if (launch_property.Failed()) { |
| 767 | LOG_ERROR(Service_ACC, "Failed to get launch property"); | 765 | LOG_ERROR(Service_ACC, "Failed to get launch property"); |
| @@ -805,7 +803,7 @@ void Module::Interface::IsUserAccountSwitchLocked(Kernel::HLERequestContext& ctx | |||
| 805 | bool is_locked = false; | 803 | bool is_locked = false; |
| 806 | 804 | ||
| 807 | if (res != Loader::ResultStatus::Success) { | 805 | if (res != Loader::ResultStatus::Success) { |
| 808 | const FileSys::PatchManager pm{system.CurrentProcess()->GetTitleID(), | 806 | const FileSys::PatchManager pm{system.GetCurrentProcessProgramID(), |
| 809 | system.GetFileSystemController(), | 807 | system.GetFileSystemController(), |
| 810 | system.GetContentProvider()}; | 808 | system.GetContentProvider()}; |
| 811 | const auto nacp_unique = pm.GetControlMetadata().first; | 809 | const auto nacp_unique = pm.GetControlMetadata().first; |
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 99bf1d84d..50c2ace93 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -15,7 +15,6 @@ | |||
| 15 | #include "core/file_sys/savedata_factory.h" | 15 | #include "core/file_sys/savedata_factory.h" |
| 16 | #include "core/hle/ipc_helpers.h" | 16 | #include "core/hle/ipc_helpers.h" |
| 17 | #include "core/hle/kernel/k_event.h" | 17 | #include "core/hle/kernel/k_event.h" |
| 18 | #include "core/hle/kernel/k_process.h" | ||
| 19 | #include "core/hle/kernel/k_transfer_memory.h" | 18 | #include "core/hle/kernel/k_transfer_memory.h" |
| 20 | #include "core/hle/service/acc/profile_manager.h" | 19 | #include "core/hle/service/acc/profile_manager.h" |
| 21 | #include "core/hle/service/am/am.h" | 20 | #include "core/hle/service/am/am.h" |
| @@ -1429,7 +1428,7 @@ void IApplicationFunctions::PopLaunchParameter(Kernel::HLERequestContext& ctx) { | |||
| 1429 | u64 build_id{}; | 1428 | u64 build_id{}; |
| 1430 | std::memcpy(&build_id, build_id_full.data(), sizeof(u64)); | 1429 | std::memcpy(&build_id, build_id_full.data(), sizeof(u64)); |
| 1431 | 1430 | ||
| 1432 | auto data = backend->GetLaunchParameter({system.CurrentProcess()->GetTitleID(), build_id}); | 1431 | auto data = backend->GetLaunchParameter({system.GetCurrentProcessProgramID(), build_id}); |
| 1433 | if (data.has_value()) { | 1432 | if (data.has_value()) { |
| 1434 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 1433 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 1435 | rb.Push(ResultSuccess); | 1434 | rb.Push(ResultSuccess); |
| @@ -1481,7 +1480,7 @@ void IApplicationFunctions::EnsureSaveData(Kernel::HLERequestContext& ctx) { | |||
| 1481 | LOG_DEBUG(Service_AM, "called, uid={:016X}{:016X}", user_id[1], user_id[0]); | 1480 | LOG_DEBUG(Service_AM, "called, uid={:016X}{:016X}", user_id[1], user_id[0]); |
| 1482 | 1481 | ||
| 1483 | FileSys::SaveDataAttribute attribute{}; | 1482 | FileSys::SaveDataAttribute attribute{}; |
| 1484 | attribute.title_id = system.CurrentProcess()->GetTitleID(); | 1483 | attribute.title_id = system.GetCurrentProcessProgramID(); |
| 1485 | attribute.user_id = user_id; | 1484 | attribute.user_id = user_id; |
| 1486 | attribute.type = FileSys::SaveDataType::SaveData; | 1485 | attribute.type = FileSys::SaveDataType::SaveData; |
| 1487 | const auto res = system.GetFileSystemController().CreateSaveData( | 1486 | const auto res = system.GetFileSystemController().CreateSaveData( |
| @@ -1511,7 +1510,7 @@ void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) { | |||
| 1511 | std::array<u8, 0x10> version_string{}; | 1510 | std::array<u8, 0x10> version_string{}; |
| 1512 | 1511 | ||
| 1513 | const auto res = [this] { | 1512 | const auto res = [this] { |
| 1514 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 1513 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 1515 | 1514 | ||
| 1516 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), | 1515 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), |
| 1517 | system.GetContentProvider()}; | 1516 | system.GetContentProvider()}; |
| @@ -1548,7 +1547,7 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { | |||
| 1548 | u32 supported_languages = 0; | 1547 | u32 supported_languages = 0; |
| 1549 | 1548 | ||
| 1550 | const auto res = [this] { | 1549 | const auto res = [this] { |
| 1551 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 1550 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 1552 | 1551 | ||
| 1553 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), | 1552 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), |
| 1554 | system.GetContentProvider()}; | 1553 | system.GetContentProvider()}; |
| @@ -1656,7 +1655,7 @@ void IApplicationFunctions::ExtendSaveData(Kernel::HLERequestContext& ctx) { | |||
| 1656 | static_cast<u8>(type), user_id[1], user_id[0], new_normal_size, new_journal_size); | 1655 | static_cast<u8>(type), user_id[1], user_id[0], new_normal_size, new_journal_size); |
| 1657 | 1656 | ||
| 1658 | system.GetFileSystemController().WriteSaveDataSize( | 1657 | system.GetFileSystemController().WriteSaveDataSize( |
| 1659 | type, system.CurrentProcess()->GetTitleID(), user_id, {new_normal_size, new_journal_size}); | 1658 | type, system.GetCurrentProcessProgramID(), user_id, {new_normal_size, new_journal_size}); |
| 1660 | 1659 | ||
| 1661 | IPC::ResponseBuilder rb{ctx, 4}; | 1660 | IPC::ResponseBuilder rb{ctx, 4}; |
| 1662 | rb.Push(ResultSuccess); | 1661 | rb.Push(ResultSuccess); |
| @@ -1680,7 +1679,7 @@ void IApplicationFunctions::GetSaveDataSize(Kernel::HLERequestContext& ctx) { | |||
| 1680 | user_id[0]); | 1679 | user_id[0]); |
| 1681 | 1680 | ||
| 1682 | const auto size = system.GetFileSystemController().ReadSaveDataSize( | 1681 | const auto size = system.GetFileSystemController().ReadSaveDataSize( |
| 1683 | type, system.CurrentProcess()->GetTitleID(), user_id); | 1682 | type, system.GetCurrentProcessProgramID(), user_id); |
| 1684 | 1683 | ||
| 1685 | IPC::ResponseBuilder rb{ctx, 6}; | 1684 | IPC::ResponseBuilder rb{ctx, 6}; |
| 1686 | rb.Push(ResultSuccess); | 1685 | rb.Push(ResultSuccess); |
diff --git a/src/core/hle/service/am/applets/applet_error.cpp b/src/core/hle/service/am/applets/applet_error.cpp index 36a4aa9cd..a06c2b872 100644 --- a/src/core/hle/service/am/applets/applet_error.cpp +++ b/src/core/hle/service/am/applets/applet_error.cpp | |||
| @@ -9,7 +9,6 @@ | |||
| 9 | #include "common/string_util.h" | 9 | #include "common/string_util.h" |
| 10 | #include "core/core.h" | 10 | #include "core/core.h" |
| 11 | #include "core/frontend/applets/error.h" | 11 | #include "core/frontend/applets/error.h" |
| 12 | #include "core/hle/kernel/k_process.h" | ||
| 13 | #include "core/hle/service/am/am.h" | 12 | #include "core/hle/service/am/am.h" |
| 14 | #include "core/hle/service/am/applets/applet_error.h" | 13 | #include "core/hle/service/am/applets/applet_error.h" |
| 15 | #include "core/reporter.h" | 14 | #include "core/reporter.h" |
| @@ -167,7 +166,7 @@ void Error::Execute() { | |||
| 167 | } | 166 | } |
| 168 | 167 | ||
| 169 | const auto callback = [this] { DisplayCompleted(); }; | 168 | const auto callback = [this] { DisplayCompleted(); }; |
| 170 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 169 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 171 | const auto& reporter{system.GetReporter()}; | 170 | const auto& reporter{system.GetReporter()}; |
| 172 | 171 | ||
| 173 | switch (mode) { | 172 | switch (mode) { |
diff --git a/src/core/hle/service/am/applets/applet_general_backend.cpp b/src/core/hle/service/am/applets/applet_general_backend.cpp index 770a8eef2..2c6e9d83c 100644 --- a/src/core/hle/service/am/applets/applet_general_backend.cpp +++ b/src/core/hle/service/am/applets/applet_general_backend.cpp | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "core/core.h" | 8 | #include "core/core.h" |
| 9 | #include "core/frontend/applets/general_frontend.h" | 9 | #include "core/frontend/applets/general_frontend.h" |
| 10 | #include "core/hle/kernel/k_process.h" | ||
| 11 | #include "core/hle/result.h" | 10 | #include "core/hle/result.h" |
| 12 | #include "core/hle/service/am/am.h" | 11 | #include "core/hle/service/am/am.h" |
| 13 | #include "core/hle/service/am/applets/applet_general_backend.h" | 12 | #include "core/hle/service/am/applets/applet_general_backend.h" |
| @@ -187,7 +186,7 @@ void PhotoViewer::Execute() { | |||
| 187 | const auto callback = [this] { ViewFinished(); }; | 186 | const auto callback = [this] { ViewFinished(); }; |
| 188 | switch (mode) { | 187 | switch (mode) { |
| 189 | case PhotoViewerAppletMode::CurrentApp: | 188 | case PhotoViewerAppletMode::CurrentApp: |
| 190 | frontend.ShowPhotosForApplication(system.CurrentProcess()->GetTitleID(), callback); | 189 | frontend.ShowPhotosForApplication(system.GetCurrentProcessProgramID(), callback); |
| 191 | break; | 190 | break; |
| 192 | case PhotoViewerAppletMode::AllApps: | 191 | case PhotoViewerAppletMode::AllApps: |
| 193 | frontend.ShowAllPhotos(callback); | 192 | frontend.ShowAllPhotos(callback); |
diff --git a/src/core/hle/service/am/applets/applet_web_browser.cpp b/src/core/hle/service/am/applets/applet_web_browser.cpp index 927eeefff..bb5cb61be 100644 --- a/src/core/hle/service/am/applets/applet_web_browser.cpp +++ b/src/core/hle/service/am/applets/applet_web_browser.cpp | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #include "core/file_sys/system_archive/system_archive.h" | 18 | #include "core/file_sys/system_archive/system_archive.h" |
| 19 | #include "core/file_sys/vfs_vector.h" | 19 | #include "core/file_sys/vfs_vector.h" |
| 20 | #include "core/frontend/applets/web_browser.h" | 20 | #include "core/frontend/applets/web_browser.h" |
| 21 | #include "core/hle/kernel/k_process.h" | ||
| 22 | #include "core/hle/result.h" | 21 | #include "core/hle/result.h" |
| 23 | #include "core/hle/service/am/am.h" | 22 | #include "core/hle/service/am/am.h" |
| 24 | #include "core/hle/service/am/applets/applet_web_browser.h" | 23 | #include "core/hle/service/am/applets/applet_web_browser.h" |
| @@ -395,7 +394,7 @@ void WebBrowser::InitializeOffline() { | |||
| 395 | switch (document_kind) { | 394 | switch (document_kind) { |
| 396 | case DocumentKind::OfflineHtmlPage: | 395 | case DocumentKind::OfflineHtmlPage: |
| 397 | default: | 396 | default: |
| 398 | title_id = system.CurrentProcess()->GetTitleID(); | 397 | title_id = system.GetCurrentProcessProgramID(); |
| 399 | nca_type = FileSys::ContentRecordType::HtmlDocument; | 398 | nca_type = FileSys::ContentRecordType::HtmlDocument; |
| 400 | additional_paths = "html-document"; | 399 | additional_paths = "html-document"; |
| 401 | break; | 400 | break; |
diff --git a/src/core/hle/service/aoc/aoc_u.cpp b/src/core/hle/service/aoc/aoc_u.cpp index 50264f69e..3c83717b5 100644 --- a/src/core/hle/service/aoc/aoc_u.cpp +++ b/src/core/hle/service/aoc/aoc_u.cpp | |||
| @@ -17,7 +17,6 @@ | |||
| 17 | #include "core/file_sys/registered_cache.h" | 17 | #include "core/file_sys/registered_cache.h" |
| 18 | #include "core/hle/ipc_helpers.h" | 18 | #include "core/hle/ipc_helpers.h" |
| 19 | #include "core/hle/kernel/k_event.h" | 19 | #include "core/hle/kernel/k_event.h" |
| 20 | #include "core/hle/kernel/k_process.h" | ||
| 21 | #include "core/hle/service/aoc/aoc_u.h" | 20 | #include "core/hle/service/aoc/aoc_u.h" |
| 22 | #include "core/loader/loader.h" | 21 | #include "core/loader/loader.h" |
| 23 | 22 | ||
| @@ -157,7 +156,7 @@ void AOC_U::CountAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 157 | IPC::ResponseBuilder rb{ctx, 3}; | 156 | IPC::ResponseBuilder rb{ctx, 3}; |
| 158 | rb.Push(ResultSuccess); | 157 | rb.Push(ResultSuccess); |
| 159 | 158 | ||
| 160 | const auto current = system.CurrentProcess()->GetTitleID(); | 159 | const auto current = system.GetCurrentProcessProgramID(); |
| 161 | 160 | ||
| 162 | const auto& disabled = Settings::values.disabled_addons[current]; | 161 | const auto& disabled = Settings::values.disabled_addons[current]; |
| 163 | if (std::find(disabled.begin(), disabled.end(), "DLC") != disabled.end()) { | 162 | if (std::find(disabled.begin(), disabled.end(), "DLC") != disabled.end()) { |
| @@ -184,7 +183,7 @@ void AOC_U::ListAddOnContent(Kernel::HLERequestContext& ctx) { | |||
| 184 | LOG_DEBUG(Service_AOC, "called with offset={}, count={}, process_id={}", offset, count, | 183 | LOG_DEBUG(Service_AOC, "called with offset={}, count={}, process_id={}", offset, count, |
| 185 | process_id); | 184 | process_id); |
| 186 | 185 | ||
| 187 | const auto current = system.CurrentProcess()->GetTitleID(); | 186 | const auto current = system.GetCurrentProcessProgramID(); |
| 188 | 187 | ||
| 189 | std::vector<u32> out; | 188 | std::vector<u32> out; |
| 190 | const auto& disabled = Settings::values.disabled_addons[current]; | 189 | const auto& disabled = Settings::values.disabled_addons[current]; |
| @@ -230,7 +229,7 @@ void AOC_U::GetAddOnContentBaseId(Kernel::HLERequestContext& ctx) { | |||
| 230 | IPC::ResponseBuilder rb{ctx, 4}; | 229 | IPC::ResponseBuilder rb{ctx, 4}; |
| 231 | rb.Push(ResultSuccess); | 230 | rb.Push(ResultSuccess); |
| 232 | 231 | ||
| 233 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 232 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 234 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), | 233 | const FileSys::PatchManager pm{title_id, system.GetFileSystemController(), |
| 235 | system.GetContentProvider()}; | 234 | system.GetContentProvider()}; |
| 236 | 235 | ||
diff --git a/src/core/hle/service/bcat/bcat_module.cpp b/src/core/hle/service/bcat/bcat_module.cpp index 36bd2a052..500e7e52d 100644 --- a/src/core/hle/service/bcat/bcat_module.cpp +++ b/src/core/hle/service/bcat/bcat_module.cpp | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | #include "core/core.h" | 11 | #include "core/core.h" |
| 12 | #include "core/file_sys/vfs.h" | 12 | #include "core/file_sys/vfs.h" |
| 13 | #include "core/hle/ipc_helpers.h" | 13 | #include "core/hle/ipc_helpers.h" |
| 14 | #include "core/hle/kernel/k_process.h" | ||
| 15 | #include "core/hle/kernel/k_readable_event.h" | 14 | #include "core/hle/kernel/k_readable_event.h" |
| 16 | #include "core/hle/service/bcat/backend/backend.h" | 15 | #include "core/hle/service/bcat/backend/backend.h" |
| 17 | #include "core/hle/service/bcat/bcat.h" | 16 | #include "core/hle/service/bcat/bcat.h" |
| @@ -178,7 +177,7 @@ private: | |||
| 178 | void RequestSyncDeliveryCache(Kernel::HLERequestContext& ctx) { | 177 | void RequestSyncDeliveryCache(Kernel::HLERequestContext& ctx) { |
| 179 | LOG_DEBUG(Service_BCAT, "called"); | 178 | LOG_DEBUG(Service_BCAT, "called"); |
| 180 | 179 | ||
| 181 | backend.Synchronize({system.CurrentProcess()->GetTitleID(), | 180 | backend.Synchronize({system.GetCurrentProcessProgramID(), |
| 182 | GetCurrentBuildID(system.GetCurrentProcessBuildID())}, | 181 | GetCurrentBuildID(system.GetCurrentProcessBuildID())}, |
| 183 | GetProgressBackend(SyncType::Normal)); | 182 | GetProgressBackend(SyncType::Normal)); |
| 184 | 183 | ||
| @@ -195,7 +194,7 @@ private: | |||
| 195 | 194 | ||
| 196 | LOG_DEBUG(Service_BCAT, "called, name={}", name); | 195 | LOG_DEBUG(Service_BCAT, "called, name={}", name); |
| 197 | 196 | ||
| 198 | backend.SynchronizeDirectory({system.CurrentProcess()->GetTitleID(), | 197 | backend.SynchronizeDirectory({system.GetCurrentProcessProgramID(), |
| 199 | GetCurrentBuildID(system.GetCurrentProcessBuildID())}, | 198 | GetCurrentBuildID(system.GetCurrentProcessBuildID())}, |
| 200 | name, GetProgressBackend(SyncType::Directory)); | 199 | name, GetProgressBackend(SyncType::Directory)); |
| 201 | 200 | ||
| @@ -556,7 +555,7 @@ private: | |||
| 556 | void Module::Interface::CreateDeliveryCacheStorageService(Kernel::HLERequestContext& ctx) { | 555 | void Module::Interface::CreateDeliveryCacheStorageService(Kernel::HLERequestContext& ctx) { |
| 557 | LOG_DEBUG(Service_BCAT, "called"); | 556 | LOG_DEBUG(Service_BCAT, "called"); |
| 558 | 557 | ||
| 559 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 558 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 560 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; | 559 | IPC::ResponseBuilder rb{ctx, 2, 0, 1}; |
| 561 | rb.Push(ResultSuccess); | 560 | rb.Push(ResultSuccess); |
| 562 | rb.PushIpcInterface<IDeliveryCacheStorageService>(system, fsc.GetBCATDirectory(title_id)); | 561 | rb.PushIpcInterface<IDeliveryCacheStorageService>(system, fsc.GetBCATDirectory(title_id)); |
diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp index 2c2619a7d..f84506af0 100644 --- a/src/core/hle/service/fatal/fatal.cpp +++ b/src/core/hle/service/fatal/fatal.cpp | |||
| @@ -11,7 +11,6 @@ | |||
| 11 | #include "common/swap.h" | 11 | #include "common/swap.h" |
| 12 | #include "core/core.h" | 12 | #include "core/core.h" |
| 13 | #include "core/hle/ipc_helpers.h" | 13 | #include "core/hle/ipc_helpers.h" |
| 14 | #include "core/hle/kernel/k_process.h" | ||
| 15 | #include "core/hle/service/fatal/fatal.h" | 14 | #include "core/hle/service/fatal/fatal.h" |
| 16 | #include "core/hle/service/fatal/fatal_p.h" | 15 | #include "core/hle/service/fatal/fatal_p.h" |
| 17 | #include "core/hle/service/fatal/fatal_u.h" | 16 | #include "core/hle/service/fatal/fatal_u.h" |
| @@ -66,7 +65,7 @@ enum class FatalType : u32 { | |||
| 66 | 65 | ||
| 67 | static void GenerateErrorReport(Core::System& system, ResultCode error_code, | 66 | static void GenerateErrorReport(Core::System& system, ResultCode error_code, |
| 68 | const FatalInfo& info) { | 67 | const FatalInfo& info) { |
| 69 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 68 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 70 | std::string crash_report = fmt::format( | 69 | std::string crash_report = fmt::format( |
| 71 | "Yuzu {}-{} crash report\n" | 70 | "Yuzu {}-{} crash report\n" |
| 72 | "Title ID: {:016x}\n" | 71 | "Title ID: {:016x}\n" |
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index 6422dec4e..3703ca4c6 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp | |||
| @@ -20,7 +20,6 @@ | |||
| 20 | #include "core/file_sys/sdmc_factory.h" | 20 | #include "core/file_sys/sdmc_factory.h" |
| 21 | #include "core/file_sys/vfs.h" | 21 | #include "core/file_sys/vfs.h" |
| 22 | #include "core/file_sys/vfs_offset.h" | 22 | #include "core/file_sys/vfs_offset.h" |
| 23 | #include "core/hle/kernel/k_process.h" | ||
| 24 | #include "core/hle/service/filesystem/filesystem.h" | 23 | #include "core/hle/service/filesystem/filesystem.h" |
| 25 | #include "core/hle/service/filesystem/fsp_ldr.h" | 24 | #include "core/hle/service/filesystem/fsp_ldr.h" |
| 26 | #include "core/hle/service/filesystem/fsp_pr.h" | 25 | #include "core/hle/service/filesystem/fsp_pr.h" |
| @@ -320,7 +319,7 @@ ResultVal<FileSys::VirtualFile> FileSystemController::OpenRomFSCurrentProcess() | |||
| 320 | return ResultUnknown; | 319 | return ResultUnknown; |
| 321 | } | 320 | } |
| 322 | 321 | ||
| 323 | return romfs_factory->OpenCurrentProcess(system.CurrentProcess()->GetTitleID()); | 322 | return romfs_factory->OpenCurrentProcess(system.GetCurrentProcessProgramID()); |
| 324 | } | 323 | } |
| 325 | 324 | ||
| 326 | ResultVal<FileSys::VirtualFile> FileSystemController::OpenPatchedRomFS( | 325 | ResultVal<FileSys::VirtualFile> FileSystemController::OpenPatchedRomFS( |
| @@ -505,7 +504,7 @@ FileSys::SaveDataSize FileSystemController::ReadSaveDataSize(FileSys::SaveDataTy | |||
| 505 | const auto res = system.GetAppLoader().ReadControlData(nacp); | 504 | const auto res = system.GetAppLoader().ReadControlData(nacp); |
| 506 | 505 | ||
| 507 | if (res != Loader::ResultStatus::Success) { | 506 | if (res != Loader::ResultStatus::Success) { |
| 508 | const FileSys::PatchManager pm{system.CurrentProcess()->GetTitleID(), | 507 | const FileSys::PatchManager pm{system.GetCurrentProcessProgramID(), |
| 509 | system.GetFileSystemController(), | 508 | system.GetFileSystemController(), |
| 510 | system.GetContentProvider()}; | 509 | system.GetContentProvider()}; |
| 511 | const auto metadata = pm.GetControlMetadata(); | 510 | const auto metadata = pm.GetControlMetadata(); |
diff --git a/src/core/hle/service/filesystem/fsp_srv.cpp b/src/core/hle/service/filesystem/fsp_srv.cpp index 50c788dd6..3501bc1a4 100644 --- a/src/core/hle/service/filesystem/fsp_srv.cpp +++ b/src/core/hle/service/filesystem/fsp_srv.cpp | |||
| @@ -26,7 +26,6 @@ | |||
| 26 | #include "core/file_sys/system_archive/system_archive.h" | 26 | #include "core/file_sys/system_archive/system_archive.h" |
| 27 | #include "core/file_sys/vfs.h" | 27 | #include "core/file_sys/vfs.h" |
| 28 | #include "core/hle/ipc_helpers.h" | 28 | #include "core/hle/ipc_helpers.h" |
| 29 | #include "core/hle/kernel/k_process.h" | ||
| 30 | #include "core/hle/service/filesystem/filesystem.h" | 29 | #include "core/hle/service/filesystem/filesystem.h" |
| 31 | #include "core/hle/service/filesystem/fsp_srv.h" | 30 | #include "core/hle/service/filesystem/fsp_srv.h" |
| 32 | #include "core/reporter.h" | 31 | #include "core/reporter.h" |
| @@ -1035,7 +1034,7 @@ void FSP_SRV::OpenDataStorageWithProgramIndex(Kernel::HLERequestContext& ctx) { | |||
| 1035 | LOG_DEBUG(Service_FS, "called, program_index={}", program_index); | 1034 | LOG_DEBUG(Service_FS, "called, program_index={}", program_index); |
| 1036 | 1035 | ||
| 1037 | auto patched_romfs = fsc.OpenPatchedRomFSWithProgramIndex( | 1036 | auto patched_romfs = fsc.OpenPatchedRomFSWithProgramIndex( |
| 1038 | system.CurrentProcess()->GetTitleID(), program_index, FileSys::ContentRecordType::Program); | 1037 | system.GetCurrentProcessProgramID(), program_index, FileSys::ContentRecordType::Program); |
| 1039 | 1038 | ||
| 1040 | if (patched_romfs.Failed()) { | 1039 | if (patched_romfs.Failed()) { |
| 1041 | // TODO: Find the right error code to use here | 1040 | // TODO: Find the right error code to use here |
diff --git a/src/core/hle/service/glue/arp.cpp b/src/core/hle/service/glue/arp.cpp index 6c8ea7f0b..2feead2aa 100644 --- a/src/core/hle/service/glue/arp.cpp +++ b/src/core/hle/service/glue/arp.cpp | |||
| @@ -26,7 +26,7 @@ std::optional<u64> GetTitleIDForProcessID(const Core::System& system, u64 proces | |||
| 26 | return std::nullopt; | 26 | return std::nullopt; |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | return (*iter)->GetTitleID(); | 29 | return (*iter)->GetProgramID(); |
| 30 | } | 30 | } |
| 31 | } // Anonymous namespace | 31 | } // Anonymous namespace |
| 32 | 32 | ||
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp index e4b97c1f6..32eff3b2a 100644 --- a/src/core/hle/service/ldr/ldr.cpp +++ b/src/core/hle/service/ldr/ldr.cpp | |||
| @@ -12,7 +12,6 @@ | |||
| 12 | #include "core/core.h" | 12 | #include "core/core.h" |
| 13 | #include "core/hle/ipc_helpers.h" | 13 | #include "core/hle/ipc_helpers.h" |
| 14 | #include "core/hle/kernel/k_page_table.h" | 14 | #include "core/hle/kernel/k_page_table.h" |
| 15 | #include "core/hle/kernel/k_process.h" | ||
| 16 | #include "core/hle/kernel/k_system_control.h" | 15 | #include "core/hle/kernel/k_system_control.h" |
| 17 | #include "core/hle/kernel/svc_results.h" | 16 | #include "core/hle/kernel/svc_results.h" |
| 18 | #include "core/hle/service/ldr/ldr.h" | 17 | #include "core/hle/service/ldr/ldr.h" |
| @@ -247,7 +246,7 @@ public: | |||
| 247 | return; | 246 | return; |
| 248 | } | 247 | } |
| 249 | 248 | ||
| 250 | if (system.CurrentProcess()->GetTitleID() != header.application_id) { | 249 | if (system.GetCurrentProcessProgramID() != header.application_id) { |
| 251 | LOG_ERROR(Service_LDR, | 250 | LOG_ERROR(Service_LDR, |
| 252 | "Attempting to load NRR with title ID other than current process. (actual " | 251 | "Attempting to load NRR with title ID other than current process. (actual " |
| 253 | "{:016X})!", | 252 | "{:016X})!", |
diff --git a/src/core/hle/service/pctl/pctl_module.cpp b/src/core/hle/service/pctl/pctl_module.cpp index 6949fcf3b..be77975ff 100644 --- a/src/core/hle/service/pctl/pctl_module.cpp +++ b/src/core/hle/service/pctl/pctl_module.cpp | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include "core/file_sys/control_metadata.h" | 7 | #include "core/file_sys/control_metadata.h" |
| 8 | #include "core/file_sys/patch_manager.h" | 8 | #include "core/file_sys/patch_manager.h" |
| 9 | #include "core/hle/ipc_helpers.h" | 9 | #include "core/hle/ipc_helpers.h" |
| 10 | #include "core/hle/kernel/k_process.h" | ||
| 11 | #include "core/hle/service/pctl/pctl.h" | 10 | #include "core/hle/service/pctl/pctl.h" |
| 12 | #include "core/hle/service/pctl/pctl_module.h" | 11 | #include "core/hle/service/pctl/pctl_module.h" |
| 13 | 12 | ||
| @@ -189,7 +188,7 @@ private: | |||
| 189 | 188 | ||
| 190 | // TODO(ogniK): Recovery flag initialization for pctl:r | 189 | // TODO(ogniK): Recovery flag initialization for pctl:r |
| 191 | 190 | ||
| 192 | const auto tid = system.CurrentProcess()->GetTitleID(); | 191 | const auto tid = system.GetCurrentProcessProgramID(); |
| 193 | if (tid != 0) { | 192 | if (tid != 0) { |
| 194 | const FileSys::PatchManager pm{tid, system.GetFileSystemController(), | 193 | const FileSys::PatchManager pm{tid, system.GetFileSystemController(), |
| 195 | system.GetContentProvider()}; | 194 | system.GetContentProvider()}; |
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp index f675740b4..88fc5b5cc 100644 --- a/src/core/hle/service/pm/pm.cpp +++ b/src/core/hle/service/pm/pm.cpp | |||
| @@ -101,7 +101,7 @@ private: | |||
| 101 | 101 | ||
| 102 | const auto process = | 102 | const auto process = |
| 103 | SearchProcessList(kernel.GetProcessList(), [title_id](const auto& proc) { | 103 | SearchProcessList(kernel.GetProcessList(), [title_id](const auto& proc) { |
| 104 | return proc->GetTitleID() == title_id; | 104 | return proc->GetProgramID() == title_id; |
| 105 | }); | 105 | }); |
| 106 | 106 | ||
| 107 | if (!process.has_value()) { | 107 | if (!process.has_value()) { |
| @@ -152,7 +152,7 @@ private: | |||
| 152 | 152 | ||
| 153 | IPC::ResponseBuilder rb{ctx, 4}; | 153 | IPC::ResponseBuilder rb{ctx, 4}; |
| 154 | rb.Push(ResultSuccess); | 154 | rb.Push(ResultSuccess); |
| 155 | rb.Push((*process)->GetTitleID()); | 155 | rb.Push((*process)->GetProgramID()); |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | const std::vector<Kernel::KProcess*>& process_list; | 158 | const std::vector<Kernel::KProcess*>& process_list; |
diff --git a/src/core/hle/service/prepo/prepo.cpp b/src/core/hle/service/prepo/prepo.cpp index 32db6834c..5c8a44688 100644 --- a/src/core/hle/service/prepo/prepo.cpp +++ b/src/core/hle/service/prepo/prepo.cpp | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | #include "common/logging/log.h" | 6 | #include "common/logging/log.h" |
| 7 | #include "core/core.h" | 7 | #include "core/core.h" |
| 8 | #include "core/hle/ipc_helpers.h" | 8 | #include "core/hle/ipc_helpers.h" |
| 9 | #include "core/hle/kernel/k_process.h" | ||
| 10 | #include "core/hle/service/acc/profile_manager.h" | 9 | #include "core/hle/service/acc/profile_manager.h" |
| 11 | #include "core/hle/service/prepo/prepo.h" | 10 | #include "core/hle/service/prepo/prepo.h" |
| 12 | #include "core/hle/service/service.h" | 11 | #include "core/hle/service/service.h" |
| @@ -73,7 +72,7 @@ private: | |||
| 73 | Type, process_id, data1.size(), data2.size()); | 72 | Type, process_id, data1.size(), data2.size()); |
| 74 | 73 | ||
| 75 | const auto& reporter{system.GetReporter()}; | 74 | const auto& reporter{system.GetReporter()}; |
| 76 | reporter.SavePlayReport(Type, system.CurrentProcess()->GetTitleID(), {data1, data2}, | 75 | reporter.SavePlayReport(Type, system.GetCurrentProcessProgramID(), {data1, data2}, |
| 77 | process_id); | 76 | process_id); |
| 78 | 77 | ||
| 79 | IPC::ResponseBuilder rb{ctx, 2}; | 78 | IPC::ResponseBuilder rb{ctx, 2}; |
| @@ -101,7 +100,7 @@ private: | |||
| 101 | Type, user_id[1], user_id[0], process_id, data1.size(), data2.size()); | 100 | Type, user_id[1], user_id[0], process_id, data1.size(), data2.size()); |
| 102 | 101 | ||
| 103 | const auto& reporter{system.GetReporter()}; | 102 | const auto& reporter{system.GetReporter()}; |
| 104 | reporter.SavePlayReport(Type, system.CurrentProcess()->GetTitleID(), {data1, data2}, | 103 | reporter.SavePlayReport(Type, system.GetCurrentProcessProgramID(), {data1, data2}, |
| 105 | process_id, user_id); | 104 | process_id, user_id); |
| 106 | 105 | ||
| 107 | IPC::ResponseBuilder rb{ctx, 2}; | 106 | IPC::ResponseBuilder rb{ctx, 2}; |
diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index 863dc0769..20f0e90f5 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp | |||
| @@ -192,7 +192,7 @@ void CheatEngine::Initialize() { | |||
| 192 | core_timing.ScheduleEvent(CHEAT_ENGINE_NS, event); | 192 | core_timing.ScheduleEvent(CHEAT_ENGINE_NS, event); |
| 193 | 193 | ||
| 194 | metadata.process_id = system.CurrentProcess()->GetProcessID(); | 194 | metadata.process_id = system.CurrentProcess()->GetProcessID(); |
| 195 | metadata.title_id = system.CurrentProcess()->GetTitleID(); | 195 | metadata.title_id = system.GetCurrentProcessProgramID(); |
| 196 | 196 | ||
| 197 | const auto& page_table = system.CurrentProcess()->PageTable(); | 197 | const auto& page_table = system.CurrentProcess()->PageTable(); |
| 198 | metadata.heap_extents = { | 198 | metadata.heap_extents = { |
diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index 365b8f906..d4becdc0a 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp | |||
| @@ -236,7 +236,7 @@ void Reporter::SaveSvcBreakReport(u32 type, bool signal_debugger, u64 info1, u64 | |||
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | const auto timestamp = GetTimestamp(); | 238 | const auto timestamp = GetTimestamp(); |
| 239 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 239 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 240 | auto out = GetFullDataAuto(timestamp, title_id, system); | 240 | auto out = GetFullDataAuto(timestamp, title_id, system); |
| 241 | 241 | ||
| 242 | auto break_out = json{ | 242 | auto break_out = json{ |
| @@ -263,7 +263,7 @@ void Reporter::SaveUnimplementedFunctionReport(Kernel::HLERequestContext& ctx, u | |||
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | const auto timestamp = GetTimestamp(); | 265 | const auto timestamp = GetTimestamp(); |
| 266 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 266 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 267 | auto out = GetFullDataAuto(timestamp, title_id, system); | 267 | auto out = GetFullDataAuto(timestamp, title_id, system); |
| 268 | 268 | ||
| 269 | auto function_out = GetHLERequestContextData(ctx, system.Memory()); | 269 | auto function_out = GetHLERequestContextData(ctx, system.Memory()); |
| @@ -285,7 +285,7 @@ void Reporter::SaveUnimplementedAppletReport( | |||
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | const auto timestamp = GetTimestamp(); | 287 | const auto timestamp = GetTimestamp(); |
| 288 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 288 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 289 | auto out = GetFullDataAuto(timestamp, title_id, system); | 289 | auto out = GetFullDataAuto(timestamp, title_id, system); |
| 290 | 290 | ||
| 291 | out["applet_common_args"] = { | 291 | out["applet_common_args"] = { |
| @@ -377,7 +377,7 @@ void Reporter::SaveUserReport() const { | |||
| 377 | } | 377 | } |
| 378 | 378 | ||
| 379 | const auto timestamp = GetTimestamp(); | 379 | const auto timestamp = GetTimestamp(); |
| 380 | const auto title_id = system.CurrentProcess()->GetTitleID(); | 380 | const auto title_id = system.GetCurrentProcessProgramID(); |
| 381 | 381 | ||
| 382 | SaveToFile(GetFullDataAuto(timestamp, title_id, system), | 382 | SaveToFile(GetFullDataAuto(timestamp, title_id, system), |
| 383 | GetPath("user_report", title_id, timestamp)); | 383 | GetPath("user_report", title_id, timestamp)); |
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 40fd47406..46ab0603d 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp | |||
| @@ -32,7 +32,6 @@ | |||
| 32 | #include "common/settings.h" | 32 | #include "common/settings.h" |
| 33 | #include "core/core.h" | 33 | #include "core/core.h" |
| 34 | #include "core/frontend/framebuffer_layout.h" | 34 | #include "core/frontend/framebuffer_layout.h" |
| 35 | #include "core/hle/kernel/k_process.h" | ||
| 36 | #include "input_common/keyboard.h" | 35 | #include "input_common/keyboard.h" |
| 37 | #include "input_common/main.h" | 36 | #include "input_common/main.h" |
| 38 | #include "input_common/mouse/mouse_input.h" | 37 | #include "input_common/mouse/mouse_input.h" |
| @@ -66,7 +65,7 @@ void EmuThread::run() { | |||
| 66 | 65 | ||
| 67 | if (Settings::values.use_disk_shader_cache.GetValue()) { | 66 | if (Settings::values.use_disk_shader_cache.GetValue()) { |
| 68 | system.Renderer().ReadRasterizer()->LoadDiskResources( | 67 | system.Renderer().ReadRasterizer()->LoadDiskResources( |
| 69 | system.CurrentProcess()->GetTitleID(), stop_token, | 68 | system.GetCurrentProcessProgramID(), stop_token, |
| 70 | [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) { | 69 | [this](VideoCore::LoadCallbackStage stage, std::size_t value, std::size_t total) { |
| 71 | emit LoadProgress(stage, value, total); | 70 | emit LoadProgress(stage, value, total); |
| 72 | }); | 71 | }); |
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index e871fee36..f6fb23085 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -2762,7 +2762,7 @@ void GMainWindow::OnConfigureTas() { | |||
| 2762 | } | 2762 | } |
| 2763 | 2763 | ||
| 2764 | void GMainWindow::OnConfigurePerGame() { | 2764 | void GMainWindow::OnConfigurePerGame() { |
| 2765 | const u64 title_id = system->CurrentProcess()->GetTitleID(); | 2765 | const u64 title_id = system->GetCurrentProcessProgramID(); |
| 2766 | OpenPerGameConfiguration(title_id, game_path.toStdString()); | 2766 | OpenPerGameConfiguration(title_id, game_path.toStdString()); |
| 2767 | } | 2767 | } |
| 2768 | 2768 | ||
| @@ -2861,7 +2861,7 @@ void GMainWindow::OnToggleFilterBar() { | |||
| 2861 | } | 2861 | } |
| 2862 | 2862 | ||
| 2863 | void GMainWindow::OnCaptureScreenshot() { | 2863 | void GMainWindow::OnCaptureScreenshot() { |
| 2864 | const u64 title_id = system->CurrentProcess()->GetTitleID(); | 2864 | const u64 title_id = system->GetCurrentProcessProgramID(); |
| 2865 | const auto screenshot_path = | 2865 | const auto screenshot_path = |
| 2866 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); | 2866 | QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir)); |
| 2867 | const auto date = | 2867 | const auto date = |
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 67587cc54..b44ea0cc4 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -28,7 +28,6 @@ | |||
| 28 | #include "core/crypto/key_manager.h" | 28 | #include "core/crypto/key_manager.h" |
| 29 | #include "core/file_sys/registered_cache.h" | 29 | #include "core/file_sys/registered_cache.h" |
| 30 | #include "core/file_sys/vfs_real.h" | 30 | #include "core/file_sys/vfs_real.h" |
| 31 | #include "core/hle/kernel/k_process.h" | ||
| 32 | #include "core/hle/service/filesystem/filesystem.h" | 31 | #include "core/hle/service/filesystem/filesystem.h" |
| 33 | #include "core/loader/loader.h" | 32 | #include "core/loader/loader.h" |
| 34 | #include "core/telemetry_session.h" | 33 | #include "core/telemetry_session.h" |
| @@ -203,7 +202,7 @@ int main(int argc, char** argv) { | |||
| 203 | 202 | ||
| 204 | if (Settings::values.use_disk_shader_cache.GetValue()) { | 203 | if (Settings::values.use_disk_shader_cache.GetValue()) { |
| 205 | system.Renderer().ReadRasterizer()->LoadDiskResources( | 204 | system.Renderer().ReadRasterizer()->LoadDiskResources( |
| 206 | system.CurrentProcess()->GetTitleID(), std::stop_token{}, | 205 | system.GetCurrentProcessProgramID(), std::stop_token{}, |
| 207 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); | 206 | [](VideoCore::LoadCallbackStage, size_t value, size_t total) {}); |
| 208 | } | 207 | } |
| 209 | 208 | ||