diff options
author | Lioncash <mathew1800@gmail.com> | 2019-03-22 11:08:11 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-03-22 19:43:37 +0100 |
commit | 540235bb05ecd18b958f9ef2a667d94fedca61af (patch) | |
tree | 28e3b04177a193d3e476c0610c29c5862ea63350 /src/core/loader | |
parent | Merge pull request #2234 from lioncash/mutex (diff) | |
download | yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.gz yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.bz2 yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.lz yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.xz yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.tar.zst yuzu-540235bb05ecd18b958f9ef2a667d94fedca61af.zip |
Diffstat (limited to '')
-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()); } } |