yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Loader: Initialize the default NCCH values in the class declaration, not in the constructor.

This commit is contained in:
Emmanuel Gil Peyrot 2015-01-06 21:10:12 +00:00
parent 9d3bb8b7c0
commit 2d63df90a9
2 changed files with 4 additions and 8 deletions

View File

@ -102,10 +102,6 @@ static bool LZSS_Decompress(u8* compressed, u32 compressed_size, u8* decompresse
/// AppLoader_NCCH constructor
AppLoader_NCCH::AppLoader_NCCH(const std::string& filename) {
this->filename = filename;
is_compressed = false;
entry_point = 0;
ncch_offset = 0;
exefs_offset = 0;
}
/// AppLoader_NCCH destructor

View File

@ -216,11 +216,11 @@ private:
std::string filename;
bool is_loaded = false;
bool is_compressed;
bool is_compressed = false;
u32 entry_point;
u32 ncch_offset; // Offset to NCCH header, can be 0 or after NCSD header
u32 exefs_offset;
u32 entry_point = 0;
u32 ncch_offset = 0; // Offset to NCCH header, can be 0 or after NCSD header
u32 exefs_offset = 0;
NCCH_Header ncch_header;
ExeFs_Header exefs_header;