Loader: Initialize the default NCCH values in the class declaration, not in the constructor.
This commit is contained in:
parent
9d3bb8b7c0
commit
2d63df90a9
2 changed files with 4 additions and 8 deletions
|
@ -102,10 +102,6 @@ static bool LZSS_Decompress(u8* compressed, u32 compressed_size, u8* decompresse
|
||||||
/// AppLoader_NCCH constructor
|
/// AppLoader_NCCH constructor
|
||||||
AppLoader_NCCH::AppLoader_NCCH(const std::string& filename) {
|
AppLoader_NCCH::AppLoader_NCCH(const std::string& filename) {
|
||||||
this->filename = filename;
|
this->filename = filename;
|
||||||
is_compressed = false;
|
|
||||||
entry_point = 0;
|
|
||||||
ncch_offset = 0;
|
|
||||||
exefs_offset = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// AppLoader_NCCH destructor
|
/// AppLoader_NCCH destructor
|
||||||
|
|
|
@ -216,11 +216,11 @@ private:
|
||||||
std::string filename;
|
std::string filename;
|
||||||
|
|
||||||
bool is_loaded = false;
|
bool is_loaded = false;
|
||||||
bool is_compressed;
|
bool is_compressed = false;
|
||||||
|
|
||||||
u32 entry_point;
|
u32 entry_point = 0;
|
||||||
u32 ncch_offset; // Offset to NCCH header, can be 0 or after NCSD header
|
u32 ncch_offset = 0; // Offset to NCCH header, can be 0 or after NCSD header
|
||||||
u32 exefs_offset;
|
u32 exefs_offset = 0;
|
||||||
|
|
||||||
NCCH_Header ncch_header;
|
NCCH_Header ncch_header;
|
||||||
ExeFs_Header exefs_header;
|
ExeFs_Header exefs_header;
|
||||||
|
|
Loading…
Reference in a new issue