From e5a7321927b72f8f437980ad19b3848d3ab50e97 Mon Sep 17 00:00:00 2001 From: Subv Date: Tue, 2 Jun 2015 14:58:10 -0500 Subject: [PATCH] Log the load bases --- src/core/hle/service/ldr_ro.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/hle/service/ldr_ro.cpp b/src/core/hle/service/ldr_ro.cpp index f02e26cae..8782bc8cc 100644 --- a/src/core/hle/service/ldr_ro.cpp +++ b/src/core/hle/service/ldr_ro.cpp @@ -316,7 +316,7 @@ static void ApplyListPatches(CROHeader* header, Patch* first_patch, u32 patch_ba SegmentTableEntry* target_segment = header->GetSegmentTableEntry(current_patch->GetTargetSegment()); ApplyPatch(current_patch, patch_base, target_segment->segment_offset + current_patch->GetSegmentOffset()); } while (!(current_patch++)->unk); - + first_patch->unk2 = 1; } @@ -326,7 +326,7 @@ static void ApplyUnk3Patches(CROHeader* header, u32 base) { SegmentTableEntry* segment = header->GetSegmentTableEntry(patch->GetTargetSegment()); u32 patch_base = segment->segment_offset + patch->GetSegmentOffset(); u32 patches_table = base + patch->patches_offset; - + Patch* first_patch = reinterpret_cast(Memory::GetPointer(patches_table)); ApplyListPatches(header, first_patch, patch_base); } @@ -374,7 +374,7 @@ static void ApplyImportTable1Patches(CROHeader* header, u32 base, bool relocated auto export = loaded_exports.find(entry_name); if (export == loaded_exports.end()) continue; - + u32 patch_base = export->second.cro_offset; Patch* first_patch = reinterpret_cast(Memory::GetPointer(entry->symbol_offset)); @@ -620,7 +620,7 @@ static void LoadExeCRO(Service::Interface* self) { cmd_buff[1] = 0; cmd_buff[2] = 0; - LOG_WARNING(Service_APT, "Loading CRO"); + LOG_WARNING(Service_APT, "Loading CRO base=%08X", base); } const Interface::FunctionInfo FunctionTable[] = {