mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[NCCH/NCSD] Pain
This commit is contained in:
parent
29241b41ce
commit
6b6cc7ca2f
3 changed files with 40 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
#pragma once
|
||||
#include <array>
|
||||
#include "helpers.hpp"
|
||||
|
||||
struct NCCH {
|
||||
|
@ -7,13 +8,20 @@ struct NCCH {
|
|||
bool compressExeFS = false;
|
||||
bool mountRomFS = false;
|
||||
bool encrypted = false;
|
||||
bool fixedCryptoKey = false;
|
||||
|
||||
static constexpr u64 mediaUnit = 0x200;
|
||||
u64 size = 0; // Size of NCCH converted to bytes
|
||||
u32 stackSize = 0;
|
||||
u32 bssSize = 0;
|
||||
u32 exheaderSize = 0;
|
||||
|
||||
// Header: 0x200 + 0x800 byte NCCH header + exheadr
|
||||
// Returns true on success, false on failure
|
||||
bool loadFromHeader(u8* header);
|
||||
bool hasExtendedHeader() { return exheaderSize != 0; }
|
||||
|
||||
private:
|
||||
std::array<u8, 16> primaryKey = {}; // For exheader, ExeFS header and icons
|
||||
std::array<u8, 16> secondaryKey = {}; // For RomFS and some files in ExeFS
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue