aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-05-30 19:35:28 -0400
committerZach Hilman <zachhilman@gmail.com>2019-09-21 21:44:22 -0400
commitc6becfc9f58c3552eaa5338ca59695e385f5688c (patch)
treeab8b7a88322ffcd89fc0d714cec210e7bbc78bf4 /src
parent7d41c1f52390abb47e67d3fc43310e9d87fbd862 (diff)
nso: Pass build ID directly
As opposed to converting to string and then back to hex array
Diffstat (limited to 'src')
-rw-r--r--src/core/loader/nso.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp
index 70c90109f3..e75c700ad1 100644
--- a/src/core/loader/nso.cpp
+++ b/src/core/loader/nso.cpp
@@ -152,8 +152,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::Process& process,
auto& system = Core::System::GetInstance();
const auto cheats = pm->CreateCheatList(system, nso_header.build_id);
if (!cheats.empty()) {
- system.RegisterCheatList(cheats, Common::HexToString(nso_header.build_id), load_base,
- load_base + program_image.size());
+ system.RegisterCheatList(cheats, nso_header.build_id, load_base, image_size);
}
}