mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
IMP sceKernelFindModuleByUID and sceKernelFindModuleByName.
This commit is contained in:
1 parent
71706724e1
commit
807de037bb
3 files changed
+91
-10
No files matched your search
+13
-1
@@ -410,8 +410,10 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop)
|
||||
for (int i = 0; i < header->e_phnum; i++) {
|
||||
const Elf32_Phdr *p = &segments[i];
|
||||
if (p->p_type == PT_LOAD) {
|
||||
if (p->p_vaddr < totalStart)
|
||||
if (p->p_vaddr < totalStart) {
|
||||
totalStart = p->p_vaddr;
|
||||
firstSegAlign = p->p_align;
|
||||
}
|
||||
if (p->p_vaddr + p->p_memsz > totalEnd)
|
||||
totalEnd = p->p_vaddr + p->p_memsz;
|
||||
}
|
||||
@@ -612,6 +614,16 @@ u32 ElfReader::GetTotalTextSize() const {
|
||||
return total;
|
||||
}
|
||||
|
||||
u32 ElfReader::GetTotalTextSizeFromSeg() const {
|
||||
u32 total = 0;
|
||||
for (int i = 0; i < GetNumSegments(); ++i) {
|
||||
if ((segments[i].p_flags & PF_X) != 0) {
|
||||
total += segments[i].p_filesz;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
||||
u32 ElfReader::GetTotalDataSize() const {
|
||||
u32 total = 0;
|
||||
for (int i = 0; i < GetNumSections(); ++i) {
|
||||
|
||||
Reference in new issue
Block a user