mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 01:33:45 +01:00
Implemented sceKernelLoadModuleByID, better logs
This commit is contained in:
1 parent
6717359270
commit
1519600441
6 files changed
+140
-69
No files matched your search
@@ -271,6 +271,7 @@ bool ElfReader::LoadInto(u32 loadAddress)
|
||||
}
|
||||
|
||||
DEBUG_LOG(LOADER,"Relocations:");
|
||||
bool oldRelocs = false;
|
||||
|
||||
// Second pass: Do necessary relocations
|
||||
for (int i=0; i<GetNumSections(); i++)
|
||||
@@ -305,17 +306,14 @@ bool ElfReader::LoadInto(u32 loadAddress)
|
||||
}
|
||||
else
|
||||
{
|
||||
//We have a relocation table!
|
||||
int sectionToModify = s->sh_info;
|
||||
if (!(sections[sectionToModify].sh_flags & SHF_ALLOC))
|
||||
{
|
||||
ERROR_LOG(LOADER,"Trying to relocate non-loaded section %s, ignoring",GetSectionName(sectionToModify));
|
||||
continue;
|
||||
}
|
||||
ERROR_LOG(LOADER,"Traditional relocations unsupported.");
|
||||
oldRelocs = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (oldRelocs)
|
||||
{
|
||||
INFO_LOG(LOADER, "Game uses old relocations (often for debugging, should be harmless)");
|
||||
}
|
||||
|
||||
// Segment relocations (a few games use them)
|
||||
if (GetNumSections() == 0)
|
||||
|
||||
Reference in new issue
Block a user