diff options
| author | 2019-05-30 19:35:28 -0400 | |
|---|---|---|
| committer | 2019-09-21 21:44:22 -0400 | |
| commit | c6becfc9f58c3552eaa5338ca59695e385f5688c (patch) | |
| tree | ab8b7a88322ffcd89fc0d714cec210e7bbc78bf4 /src | |
| parent | cheat_engine: Move to memory and strip VM (diff) | |
| download | yuzu-c6becfc9f58c3552eaa5338ca59695e385f5688c.tar.gz yuzu-c6becfc9f58c3552eaa5338ca59695e385f5688c.tar.xz yuzu-c6becfc9f58c3552eaa5338ca59695e385f5688c.zip | |
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.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 70c90109f..e75c700ad 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, | |||
| 152 | auto& system = Core::System::GetInstance(); | 152 | auto& system = Core::System::GetInstance(); |
| 153 | const auto cheats = pm->CreateCheatList(system, nso_header.build_id); | 153 | const auto cheats = pm->CreateCheatList(system, nso_header.build_id); |
| 154 | if (!cheats.empty()) { | 154 | if (!cheats.empty()) { |
| 155 | system.RegisterCheatList(cheats, Common::HexToString(nso_header.build_id), load_base, | 155 | system.RegisterCheatList(cheats, nso_header.build_id, load_base, image_size); |
| 156 | load_base + program_image.size()); | ||
| 157 | } | 156 | } |
| 158 | } | 157 | } |
| 159 | 158 | ||