From af35e0410dc249037e93d872a1fca3498df001eb Mon Sep 17 00:00:00 2001 From: jakcron Date: Tue, 15 May 2018 18:23:56 +0800 Subject: [PATCH] [nstool] Add type raw value to CnmtProcess --- programs/nstool/source/CnmtProcess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/nstool/source/CnmtProcess.cpp b/programs/nstool/source/CnmtProcess.cpp index 8d05018..91d5bd6 100644 --- a/programs/nstool/source/CnmtProcess.cpp +++ b/programs/nstool/source/CnmtProcess.cpp @@ -97,7 +97,7 @@ void CnmtProcess::displayCmnt() { const nx::ContentMetaBinary::ContentInfo& info = mCnmt.getContentInfo()[i]; printf(" %d\n", i); - printf(" Type: %s\n", kContentTypeStr[info.type].c_str()); + printf(" Type: %s (%d)\n", kContentTypeStr[info.type].c_str(), info.type); printf(" Id: "); fnd::SimpleTextOutput::hexDump(info.nca_id, nx::cnmt::kContentIdLen); printf(" Size: 0x%" PRIx64 "\n", info.size); @@ -114,7 +114,7 @@ void CnmtProcess::displayCmnt() printf(" %d\n", i); printf(" Id: 0x%016" PRIx64 "\n", info.id); printf(" Version: v%" PRId32 " (%d.%d.%d.%d)\n", info.version, _SPLIT_VER(info.version)); - printf(" Type: %s\n", getContentMetaTypeStr(info.type).c_str()); + printf(" Type: %s (%d)\n", getContentMetaTypeStr(info.type).c_str(), info.type); printf(" Attributes: %x\n", mCnmt.getAttributes()); printf(" IncludesExFatDriver: %s\n", getBoolStr(_HAS_BIT(mCnmt.getAttributes(), nx::cnmt::ATTRIBUTE_INCLUDES_EX_FAT_DRIVER))); printf(" Rebootless: %s\n", getBoolStr(_HAS_BIT(mCnmt.getAttributes(), nx::cnmt::ATTRIBUTE_REBOOTLESS)));