mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 16:35:47 +01:00
Loader: Initialize the default NCCH values in the class declaration, not in the constructor.
This commit is contained in:
parent
9d3bb8b7c0
commit
2d63df90a9
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user