mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-02 16:59:03 +00:00
Honour opt.info when running CiaProcess
This commit is contained in:
@@ -13,7 +13,6 @@ ctrtool::CiaProcess::CiaProcess() :
|
||||
mInputStream(),
|
||||
mKeyBag(),
|
||||
mShowHeaderInfo(false),
|
||||
mShowFs(false),
|
||||
mVerbose(false),
|
||||
mVerify(false),
|
||||
mCertExtractPath(),
|
||||
@@ -49,10 +48,9 @@ void ctrtool::CiaProcess::setKeyBag(const ctrtool::KeyBag& key_bag)
|
||||
mNcchProcess.setKeyBag(key_bag);
|
||||
}
|
||||
|
||||
void ctrtool::CiaProcess::setCliOutputMode(bool show_header_info, bool show_fs)
|
||||
void ctrtool::CiaProcess::setCliOutputMode(bool show_header_info)
|
||||
{
|
||||
mShowHeaderInfo = show_header_info;
|
||||
mShowFs = show_fs;
|
||||
}
|
||||
|
||||
void ctrtool::CiaProcess::setVerboseMode(bool verbose)
|
||||
|
||||
@@ -20,7 +20,7 @@ public:
|
||||
|
||||
void setInputStream(const std::shared_ptr<tc::io::IStream>& input_stream);
|
||||
void setKeyBag(const ctrtool::KeyBag& key_bag);
|
||||
void setCliOutputMode(bool show_header_info, bool show_fs);
|
||||
void setCliOutputMode(bool show_header_info);
|
||||
void setVerboseMode(bool verbose);
|
||||
void setVerifyMode(bool verify);
|
||||
void setCertExtractPath(const tc::io::Path& extract_path);
|
||||
@@ -44,7 +44,6 @@ private:
|
||||
std::shared_ptr<tc::io::IStream> mInputStream;
|
||||
ctrtool::KeyBag mKeyBag;
|
||||
bool mShowHeaderInfo;
|
||||
bool mShowFs;
|
||||
bool mVerbose;
|
||||
bool mVerify;
|
||||
tc::Optional<tc::io::Path> mCertExtractPath;
|
||||
|
||||
@@ -126,7 +126,7 @@ int umain(const std::vector<std::string>& args, const std::vector<std::string>&
|
||||
ctrtool::CiaProcess proc;
|
||||
proc.setInputStream(infile_stream);
|
||||
proc.setKeyBag(set.opt.keybag);
|
||||
proc.setCliOutputMode(true, false);
|
||||
proc.setCliOutputMode(set.opt.info);
|
||||
proc.setVerboseMode(set.opt.verbose);
|
||||
proc.setVerifyMode(set.opt.verify);
|
||||
if (set.rom.content_extract_path.isSet())
|
||||
|
||||
Reference in New Issue
Block a user