From 99b64bc6786eaf8251effedf2582ea0c944f5e3a Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 17 Mar 2020 19:13:11 +0800 Subject: [PATCH] Update MetaProcess to resolve ProgramType to a string and present SystemResourceSize --- src/MetaProcess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MetaProcess.cpp b/src/MetaProcess.cpp index 7c8e509..c299704 100644 --- a/src/MetaProcess.cpp +++ b/src/MetaProcess.cpp @@ -287,6 +287,7 @@ void MetaProcess::displayMetaHeader(const nn::hac::Meta& hdr) std::cout << " Is64BitInstruction: " << std::boolalpha << hdr.getIs64BitInstructionFlag() << std::endl; std::cout << " ProcessAddressSpace: " << nn::hac::MetaUtil::getProcessAddressSpaceAsString(hdr.getProcessAddressSpace()) << std::endl; std::cout << " OptimizeMemoryAllocation: " << std::boolalpha << hdr.getOptimizeMemoryAllocationFlag() << std::endl; + std::cout << " SystemResourceSize: 0x" << std::hex << hdr.getSystemResourceSize() << std::endl; std::cout << " Main Thread Params:" << std::endl; std::cout << " Priority: " << std::dec << (uint32_t)hdr.getMainThreadPriority() << std::endl; std::cout << " CpuId: " << std::dec << (uint32_t)hdr.getMainThreadCpuId() << std::endl; @@ -452,7 +453,7 @@ void MetaProcess::displayKernelCap(const nn::hac::KernelCapabilityControl& kern) } if (kern.getMiscParams().isSet()) { - std::cout << " ProgramType: " << std::dec << (uint32_t)kern.getMiscParams().getProgramType() << std::endl; + std::cout << " ProgramType: " << nn::hac::KernelCapabilityUtil::getProgramTypeAsString(kern.getMiscParams().getProgramType()) << " (" << std::dec << (uint32_t)kern.getMiscParams().getProgramType() << ")" << std::endl; } if (kern.getKernelVersion().isSet()) {