From 9b6438790528ebe068010290e6ced1fd28795189 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 12 Aug 2018 13:22:07 +0800 Subject: [PATCH] [nstool] Cleaned up AssetProcess string output. --- programs/nstool/source/AssetProcess.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/programs/nstool/source/AssetProcess.cpp b/programs/nstool/source/AssetProcess.cpp index ef48adf..7dd8726 100644 --- a/programs/nstool/source/AssetProcess.cpp +++ b/programs/nstool/source/AssetProcess.cpp @@ -1,5 +1,7 @@ #include #include +#include +#include #include "AssetProcess.h" #include "OffsetAdjustedIFile.h" @@ -141,16 +143,16 @@ void AssetProcess::displayHeader() { if (_HAS_BIT(mCliOutputMode, OUTPUT_LAYOUT)) { - printf("[ASET Header]\n"); - printf(" Icon:\n"); - printf(" Offset: 0x%" PRIx64 "\n", mHdr.getIconInfo().offset); - printf(" Size: 0x%" PRIx64 "\n", mHdr.getIconInfo().size); - printf(" NACP:\n"); - printf(" Offset: 0x%" PRIx64 "\n", mHdr.getNacpInfo().offset); - printf(" Size: 0x%" PRIx64 "\n", mHdr.getNacpInfo().size); - printf(" RomFS:\n"); - printf(" Offset: 0x%" PRIx64 "\n", mHdr.getRomfsInfo().offset); - printf(" Size: 0x%" PRIx64 "\n", mHdr.getRomfsInfo().size); + std::cout << "[ASET Header]" << std::endl; + std::cout << " Icon:" << std::endl; + std::cout << " Offset: 0x" << std::hex << mHdr.getIconInfo().offset << std::endl; + std::cout << " Size: 0x" << std::hex << mHdr.getIconInfo().size << std::endl; + std::cout << " NACP:" << std::endl; + std::cout << " Offset: 0x" << std::hex << mHdr.getNacpInfo().offset << std::endl; + std::cout << " Size: 0x" << std::hex << mHdr.getNacpInfo().size << std::endl; + std::cout << " RomFS:" << std::endl; + std::cout << " Offset: 0x" << std::hex << mHdr.getRomfsInfo().offset << std::endl; + std::cout << " Size: 0x" << std::hex << mHdr.getRomfsInfo().size << std::endl; } }