diff options
author | bunnei <bunneidev@gmail.com> | 2019-03-22 23:41:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 23:41:44 +0100 |
commit | 819dd93257c438a74f8abc74c3a240c4802cbf2e (patch) | |
tree | 3ba56734bd2595d7f310dd028079af31ed9fcaca /src/core/loader | |
parent | Merge pull request #2256 from bunnei/gpu-vmm (diff) | |
parent | file_sys/cheat_engine: Silence truncation and sign-conversion warnings (diff) | |
download | yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar.gz yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar.bz2 yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar.lz yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar.xz yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.tar.zst yuzu-819dd93257c438a74f8abc74c3a240c4802cbf2e.zip |
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 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()); } } |