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 | 819dd93257c438a74f8abc74c3a240c4802cbf2e (patch) | |
tree | 3ba56734bd2595d7f310dd028079af31ed9fcaca /src/core/loader/nso.cpp | |
parent | e5893db3e618fd276733a24eebc0606c5fd1e7f2 (diff) | |
parent | 733cf179b84a098955f0b7296d90da0aac3ddf7b (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/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, // 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()); } } |