mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Set ent_top/ent_size/stub_top/stub_size of SceModule
This commit is contained in:
parent
ee641c1ed1
commit
e496c5e8cc
1 changed files with 6 additions and 0 deletions
|
@ -1431,8 +1431,14 @@ static PSPModule *__KernelLoadELFFromPtr(const u8 *ptr, size_t elfSize, u32 load
|
|||
u8 unknown2;
|
||||
};
|
||||
|
||||
module->nm.ent_top = modinfo->libent;
|
||||
module->nm.ent_size = modinfo->libentend - modinfo->libent;
|
||||
module->nm.stub_top = modinfo->libstub;
|
||||
module->nm.stub_size = modinfo->libstubend - modinfo->libstub;
|
||||
|
||||
const u32_le *entPos = (u32_le *)Memory::GetPointer(modinfo->libent);
|
||||
const u32_le *entEnd = (u32_le *)Memory::GetPointer(modinfo->libentend);
|
||||
|
||||
for (int m = 0; entPos < entEnd; ++m) {
|
||||
const PspLibEntEntry *ent = (const PspLibEntEntry *)entPos;
|
||||
entPos += ent->size;
|
||||
|
|
Loading…
Add table
Reference in a new issue