diff options
| author | 2019-04-28 18:43:48 -0400 | |
|---|---|---|
| committer | 2019-09-30 17:21:53 -0400 | |
| commit | f6c53526b3e6852577ad5f5986be89202b15c5b2 (patch) | |
| tree | dab7e623b1e6a2783effbda7a53f232d18aaf6ec /src/core/loader/nso.cpp | |
| parent | applets: Add accessor for AppletFrontendSet (diff) | |
| download | yuzu-f6c53526b3e6852577ad5f5986be89202b15c5b2.tar.gz yuzu-f6c53526b3e6852577ad5f5986be89202b15c5b2.tar.xz yuzu-f6c53526b3e6852577ad5f5986be89202b15c5b2.zip | |
core/loader: Track the NSO build ID of the current process
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index e75c700ad..f629892ae 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -150,6 +150,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::Process& process, | |||
| 150 | // Apply cheats if they exist and the program has a valid title ID | 150 | // Apply cheats if they exist and the program has a valid title ID |
| 151 | if (pm) { | 151 | if (pm) { |
| 152 | auto& system = Core::System::GetInstance(); | 152 | auto& system = Core::System::GetInstance(); |
| 153 | system.SetCurrentProcessBuildID(nso_header.build_id); | ||
| 153 | const auto cheats = pm->CreateCheatList(system, nso_header.build_id); | 154 | const auto cheats = pm->CreateCheatList(system, nso_header.build_id); |
| 154 | if (!cheats.empty()) { | 155 | if (!cheats.empty()) { |
| 155 | system.RegisterCheatList(cheats, nso_header.build_id, load_base, image_size); | 156 | system.RegisterCheatList(cheats, nso_header.build_id, load_base, image_size); |