mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-11 08:39:48 +12:00
Fix ExeFS offset derp
This commit is contained in:
parent
63f9cfe0c2
commit
804e43f8c9
1 changed files with 3 additions and 2 deletions
|
@ -159,8 +159,9 @@ bool NCCH::loadFromHeader(Crypto::AESEngine &aesEngine, IOFile& file, const FSIn
|
|||
|
||||
// Read ExeFS
|
||||
if (hasExeFS()) {
|
||||
u64 exeFSOffset = fileOffset + exeFS.offset; // Offset of ExeFS in the file = exeFS offset + ncch offset
|
||||
printf("ExeFS offset: %08llX, size: %08llX (Offset in file = %08llX)\n", exeFS.offset, exeFS.size, exeFSOffset);
|
||||
// Offset of ExeFS in the file = exeFS offset + NCCH offset
|
||||
// exeFS.offset has already been offset by the NCCH offset
|
||||
printf("ExeFS offset: %08llX, size: %08llX (Offset in file = %08llX)\n", exeFS.offset - info.offset, exeFS.size, exeFS.offset);
|
||||
constexpr size_t exeFSHeaderSize = 0x200;
|
||||
|
||||
u8 exeFSHeader[exeFSHeaderSize];
|
||||
|
|
Loading…
Add table
Reference in a new issue