diff options
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 0eb9fd7f7..7494f8a28 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -169,11 +169,11 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::Process& process, | |||
| 169 | 169 | ||
| 170 | // Apply cheats if they exist and the program has a valid title ID | 170 | // Apply cheats if they exist and the program has a valid title ID |
| 171 | if (pm) { | 171 | if (pm) { |
| 172 | const auto cheats = pm->CreateCheatList(nso_header.build_id); | 172 | auto& system = Core::System::GetInstance(); |
| 173 | const auto cheats = pm->CreateCheatList(system, nso_header.build_id); | ||
| 173 | if (!cheats.empty()) { | 174 | if (!cheats.empty()) { |
| 174 | Core::System::GetInstance().RegisterCheatList( | 175 | system.RegisterCheatList(cheats, Common::HexArrayToString(nso_header.build_id), |
| 175 | cheats, Common::HexArrayToString(nso_header.build_id), load_base, | 176 | load_base, load_base + program_image.size()); |
| 176 | load_base + program_image.size()); | ||
| 177 | } | 177 | } |
| 178 | } | 178 | } |
| 179 | 179 | ||