diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-22 18:41:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-22 18:41:44 -0400 |
| commit | b69517e9a1b4987f23b86a9a37d3f32dfd5d98c3 (patch) | |
| tree | 3ba56734bd2595d7f310dd028079af31ed9fcaca /src/core/loader | |
| parent | fabddcb96218709d84e036cfa3bc0c56d7dc3369 (diff) | |
| parent | 0d44c061fe80e256e4ee487f16882554681d9481 (diff) | |
Merge pull request #2279 from lioncash/cheat-global
file_sys/cheat_engine: Remove use of global system accessors
Diffstat (limited to 'src/core/loader')
| -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 0eb9fd7f70..7494f8a286 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, // Apply cheats if they exist and the program has a valid title ID if (pm) { - const auto cheats = pm->CreateCheatList(nso_header.build_id); + auto& system = Core::System::GetInstance(); + const auto cheats = pm->CreateCheatList(system, nso_header.build_id); if (!cheats.empty()) { - Core::System::GetInstance().RegisterCheatList( - cheats, Common::HexArrayToString(nso_header.build_id), load_base, - load_base + program_image.size()); + system.RegisterCheatList(cheats, Common::HexArrayToString(nso_header.build_id), + load_base, load_base + program_image.size()); } } |
