From 1aaddcaa3fddeffc2c2d313b9d8916e5476a0633 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 29 Feb 2020 11:37:26 +0800 Subject: [PATCH] Update NroProcess to support processing Nro ro_crt properly. --- deps/libnintendo-hac | 2 +- src/NroProcess.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/deps/libnintendo-hac b/deps/libnintendo-hac index 6dd23c3..231b7ae 160000 --- a/deps/libnintendo-hac +++ b/deps/libnintendo-hac @@ -1 +1 @@ -Subproject commit 6dd23c3c461491a8a639dc80687f9464c35be1f0 +Subproject commit 231b7aeba9f2831c629129e890c66642de7c3a12 diff --git a/src/NroProcess.cpp b/src/NroProcess.cpp index f1da20d..7f3927e 100644 --- a/src/NroProcess.cpp +++ b/src/NroProcess.cpp @@ -128,7 +128,9 @@ void NroProcess::importCodeSegments() void NroProcess::displayHeader() { std::cout << "[NRO Header]" << std::endl; - std::cout << " RoCrt: " << fnd::SimpleTextOutput::arrayToString(mHdr.getRoCrt().data, nn::hac::nro::kRoCrtSize, false, "") << std::endl; + std::cout << " RoCrt: " << std::endl; + std::cout << " EntryInsn: 0x" << std::hex << mHdr.getRoCrtEntryInsn() << std::endl; + std::cout << " ModOffset: 0x" << std::hex << mHdr.getRoCrtModOffset() << std::endl; std::cout << " ModuleId: " << fnd::SimpleTextOutput::arrayToString(mHdr.getModuleId().data, nn::hac::nro::kModuleIdSize, false, "") << std::endl; std::cout << " NroSize: 0x" << std::hex << mHdr.getNroSize() << std::endl; std::cout << " Program Sections:" << std::endl;