mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-08 23:25:40 +12:00
Remove the TODO in romfs.cpp
This commit is contained in:
parent
d610cfa826
commit
e6098ba7ae
1 changed files with 4 additions and 3 deletions
|
@ -160,9 +160,10 @@ namespace RomFS {
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t masterHashOffset = RomFS::alignUp(ivfcSize, 0x10);
|
uintptr_t masterHashOffset = RomFS::alignUp(ivfcSize, 0x10);
|
||||||
// For a weird reason, the level 3 offset is not the one in the IVFC, instead it's
|
// From GBATEK:
|
||||||
// the first block after the master hash
|
// The "Logical Offsets" are completely unrelated to the physical offsets in the RomFS partition.
|
||||||
// TODO: Find out why and explain in the comment
|
// Instead, the "Logical Offsets" might be something about where to map the Level 1-3 sections in
|
||||||
|
// virtual memory (with the physical Level 3,1,2 ordering being re-ordered to Level 1,2,3)?
|
||||||
uintptr_t level3Offset = RomFS::alignUp(masterHashOffset + ivfc.masterHashSize, ivfc.levels[2].blockSize);
|
uintptr_t level3Offset = RomFS::alignUp(masterHashOffset + ivfc.masterHashSize, ivfc.levels[2].blockSize);
|
||||||
uintptr_t level3Base = (uintptr_t)romFS + level3Offset;
|
uintptr_t level3Base = (uintptr_t)romFS + level3Offset;
|
||||||
u32* level3Ptr = (u32*)level3Base;
|
u32* level3Ptr = (u32*)level3Base;
|
||||||
|
|
Loading…
Add table
Reference in a new issue