Przeglądaj źródła

nso: Pass build ID directly

As opposed to converting to string and then back to hex array
Zach Hilman 7 lat temu
rodzic
commit
c6becfc9f5
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      src/core/loader/nso.cpp

+ 1 - 2
src/core/loader/nso.cpp

@@ -152,8 +152,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::Process& process,
         auto& system = Core::System::GetInstance();
         auto& system = Core::System::GetInstance();
         const auto cheats = pm->CreateCheatList(system, nso_header.build_id);
         const auto cheats = pm->CreateCheatList(system, nso_header.build_id);
         if (!cheats.empty()) {
         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);
         }
         }
     }
     }