Add connections for NacpProcess.

This commit is contained in:
jakcron 2021-10-01 20:48:44 +08:00
parent a4effb5b6a
commit 651c8e090d
3 changed files with 8 additions and 6 deletions

View file

@ -95,11 +95,11 @@ void nstool::AssetProcess::processSections()
writeSubStreamToFile(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size, mNacpExtractPath.get());
}
//mNacp.setInputFile(std::make_shared<tc::io::SubStream>(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size));
//mNacp.setCliOutputMode(mCliOutputMode);
//mNacp.setVerifyMode(mVerify);
mNacp.setInputFile(std::make_shared<tc::io::SubStream>(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size));
mNacp.setCliOutputMode(mCliOutputMode);
mNacp.setVerifyMode(mVerify);
//mNacp.process();
mNacp.process();
}
if (mHdr.getRomfsInfo().size > 0)

View file

@ -36,7 +36,7 @@ private:
tc::Optional<tc::io::Path> mNacpExtractPath;
nn::hac::AssetHeader mHdr;
//NacpProcess mNacp;
NacpProcess mNacp;
//RomfsProcess mRomfs;
void importHeader();

View file

@ -11,7 +11,7 @@
#include "CnmtProcess.h"
//#include "NsoProcess.h"
//#include "NroProcess.h"
//#include "NacpProcess.h"
#include "NacpProcess.h"
//#include "IniProcess.h"
//#include "KipProcess.h"
//#include "PkiCertProcess.h"
@ -162,6 +162,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
obj.process();
}
*/
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_NACP)
{
nstool::NacpProcess obj;
@ -172,6 +173,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
obj.process();
}
/*
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_INI)
{
nstool::IniProcess obj;