mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
Add connections for NacpProcess.
This commit is contained in:
parent
a4effb5b6a
commit
651c8e090d
3 changed files with 8 additions and 6 deletions
|
@ -95,11 +95,11 @@ void nstool::AssetProcess::processSections()
|
||||||
writeSubStreamToFile(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size, mNacpExtractPath.get());
|
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.setInputFile(std::make_shared<tc::io::SubStream>(mFile, mHdr.getNacpInfo().offset, mHdr.getNacpInfo().size));
|
||||||
//mNacp.setCliOutputMode(mCliOutputMode);
|
mNacp.setCliOutputMode(mCliOutputMode);
|
||||||
//mNacp.setVerifyMode(mVerify);
|
mNacp.setVerifyMode(mVerify);
|
||||||
|
|
||||||
//mNacp.process();
|
mNacp.process();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mHdr.getRomfsInfo().size > 0)
|
if (mHdr.getRomfsInfo().size > 0)
|
||||||
|
|
|
@ -36,7 +36,7 @@ private:
|
||||||
tc::Optional<tc::io::Path> mNacpExtractPath;
|
tc::Optional<tc::io::Path> mNacpExtractPath;
|
||||||
|
|
||||||
nn::hac::AssetHeader mHdr;
|
nn::hac::AssetHeader mHdr;
|
||||||
//NacpProcess mNacp;
|
NacpProcess mNacp;
|
||||||
//RomfsProcess mRomfs;
|
//RomfsProcess mRomfs;
|
||||||
|
|
||||||
void importHeader();
|
void importHeader();
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#include "CnmtProcess.h"
|
#include "CnmtProcess.h"
|
||||||
//#include "NsoProcess.h"
|
//#include "NsoProcess.h"
|
||||||
//#include "NroProcess.h"
|
//#include "NroProcess.h"
|
||||||
//#include "NacpProcess.h"
|
#include "NacpProcess.h"
|
||||||
//#include "IniProcess.h"
|
//#include "IniProcess.h"
|
||||||
//#include "KipProcess.h"
|
//#include "KipProcess.h"
|
||||||
//#include "PkiCertProcess.h"
|
//#include "PkiCertProcess.h"
|
||||||
|
@ -162,6 +162,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
|
||||||
|
|
||||||
obj.process();
|
obj.process();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_NACP)
|
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_NACP)
|
||||||
{
|
{
|
||||||
nstool::NacpProcess obj;
|
nstool::NacpProcess obj;
|
||||||
|
@ -172,6 +173,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
|
||||||
|
|
||||||
obj.process();
|
obj.process();
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_INI)
|
else if (set.infile.filetype == nstool::Settings::FILE_TYPE_INI)
|
||||||
{
|
{
|
||||||
nstool::IniProcess obj;
|
nstool::IniProcess obj;
|
||||||
|
|
Loading…
Reference in a new issue