diff options
| author | 2021-11-04 20:34:20 -0400 | |
|---|---|---|
| committer | 2021-11-04 20:34:20 -0400 | |
| commit | 3a71ff44f82304b3e781c89fb60bd87c2c7afa3c (patch) | |
| tree | 2244cf6a21d45b6bbb5c57d77e154c130e415961 /src/yuzu_cmd/yuzu.cpp | |
| parent | Merge pull request #7289 from ameerj/perf-stat-shutdown (diff) | |
| parent | general: Get the current process program id directly from the system (diff) | |
| download | yuzu-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/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 | ||