diff options
| author | 2019-03-22 06:08:11 -0400 | |
|---|---|---|
| committer | 2019-03-22 14:43:37 -0400 | |
| commit | 540235bb05ecd18b958f9ef2a667d94fedca61af (patch) | |
| tree | 28e3b04177a193d3e476c0610c29c5862ea63350 /src/core/loader/nso.cpp | |
| parent | Merge pull request #2234 from lioncash/mutex (diff) | |
| download | yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.gz yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.xz yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.zip | |
file_sys/cheat_engine: Remove use of global system accessors
Instead, pass in the core timing instance and make the dependency
explicit in the interface.
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 | ||