forked from eden-emu/eden
Loader: Change NCCH header types to be explicitly little-endian
This commit is contained in:
parent
2706394384
commit
721475420d
2 changed files with 17 additions and 18 deletions
|
@ -128,9 +128,8 @@ ResultStatus AppLoader_NCCH::LoadExec() {
|
|||
if (ResultStatus::Success == ReadCode(code)) {
|
||||
std::string process_name = Common::StringFromFixedZeroTerminatedBuffer(
|
||||
(const char*)exheader_header.codeset_info.name, 8);
|
||||
u64 program_id = *reinterpret_cast<u64_le const*>(&ncch_header.program_id[0]);
|
||||
|
||||
SharedPtr<CodeSet> codeset = CodeSet::Create(process_name, program_id);
|
||||
SharedPtr<CodeSet> codeset = CodeSet::Create(process_name, ncch_header.program_id);
|
||||
|
||||
codeset->code.offset = 0;
|
||||
codeset->code.addr = exheader_header.codeset_info.text.address;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue