Update NroProcess to support processing Nro ro_crt properly.

This commit is contained in:
jakcron 2020-02-29 11:37:26 +08:00
parent 5e4f4b90f8
commit 1aaddcaa3f
2 changed files with 4 additions and 2 deletions

@ -1 +1 @@
Subproject commit 6dd23c3c461491a8a639dc80687f9464c35be1f0
Subproject commit 231b7aeba9f2831c629129e890c66642de7c3a12

View file

@ -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;