[nstool] Cleaned up AssetProcess string output.

This commit is contained in:
jakcron 2018-08-12 13:22:07 +08:00
parent a62a983399
commit 9b64387905

View file

@ -1,5 +1,7 @@
#include <fnd/SimpleFile.h> #include <fnd/SimpleFile.h>
#include <fnd/Vec.h> #include <fnd/Vec.h>
#include <iostream>
#include <iomanip>
#include "AssetProcess.h" #include "AssetProcess.h"
#include "OffsetAdjustedIFile.h" #include "OffsetAdjustedIFile.h"
@ -141,16 +143,16 @@ void AssetProcess::displayHeader()
{ {
if (_HAS_BIT(mCliOutputMode, OUTPUT_LAYOUT)) if (_HAS_BIT(mCliOutputMode, OUTPUT_LAYOUT))
{ {
printf("[ASET Header]\n"); std::cout << "[ASET Header]" << std::endl;
printf(" Icon:\n"); std::cout << " Icon:" << std::endl;
printf(" Offset: 0x%" PRIx64 "\n", mHdr.getIconInfo().offset); std::cout << " Offset: 0x" << std::hex << mHdr.getIconInfo().offset << std::endl;
printf(" Size: 0x%" PRIx64 "\n", mHdr.getIconInfo().size); std::cout << " Size: 0x" << std::hex << mHdr.getIconInfo().size << std::endl;
printf(" NACP:\n"); std::cout << " NACP:" << std::endl;
printf(" Offset: 0x%" PRIx64 "\n", mHdr.getNacpInfo().offset); std::cout << " Offset: 0x" << std::hex << mHdr.getNacpInfo().offset << std::endl;
printf(" Size: 0x%" PRIx64 "\n", mHdr.getNacpInfo().size); std::cout << " Size: 0x" << std::hex << mHdr.getNacpInfo().size << std::endl;
printf(" RomFS:\n"); std::cout << " RomFS:" << std::endl;
printf(" Offset: 0x%" PRIx64 "\n", mHdr.getRomfsInfo().offset); std::cout << " Offset: 0x" << std::hex << mHdr.getRomfsInfo().offset << std::endl;
printf(" Size: 0x%" PRIx64 "\n", mHdr.getRomfsInfo().size); std::cout << " Size: 0x" << std::hex << mHdr.getRomfsInfo().size << std::endl;
} }
} }