summaryrefslogtreecommitdiffstats
path: root/src/core/loader/ncch.cpp
diff options
context:
space:
mode:
authorGareth Poole <Gareth422@users.noreply.github.com>2015-10-11 03:51:06 +0200
committerGareth Poole <Gareth422@users.noreply.github.com>2015-10-11 04:35:22 +0200
commit721475420dd2863c2cb9142f1fc3f89e2a9d46d5 (patch)
tree7522160ba1989e2c1a784cdf4298b6cba4f3f4f6 /src/core/loader/ncch.cpp
parentLoader: Implement encryption check (diff)
downloadyuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar.gz
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar.bz2
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar.lz
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar.xz
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.tar.zst
yuzu-721475420dd2863c2cb9142f1fc3f89e2a9d46d5.zip
Diffstat (limited to 'src/core/loader/ncch.cpp')
-rw-r--r--src/core/loader/ncch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp
index c67d25b55..68b3f546e 100644
--- a/src/core/loader/ncch.cpp
+++ b/src/core/loader/ncch.cpp
@@ -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;