lru fix wildcard

This commit is contained in:
Maufeat 2025-07-31 20:51:34 +02:00 committed by crueter
parent 3b72c29303
commit fdc9c7b811
2 changed files with 33 additions and 12 deletions

View file

@ -166,6 +166,8 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::KProcess& process, Core::
const auto& code = codeset.CodeSegment();
auto* patch = patches ? &patches->operator[](patch_index) : nullptr;
if (patch && !load_into_process) {
//Set module ID using build_id from the NSO header
patch->SetModuleID(nso_header.build_id);
// Patch SVCs and MRS calls in the guest code
while (!patch->PatchText(program_image, code)) {
patch = &patches->emplace_back();