nstool/src/CnmtProcess.h

36 lines
786 B
C
Raw Normal View History

2019-01-31 09:10:19 +00:00
#pragma once
#include "types.h"
2019-01-31 09:10:19 +00:00
#include <nn/hac/ContentMeta.h>
namespace nstool {
2019-01-31 09:10:19 +00:00
class CnmtProcess
{
public:
CnmtProcess();
void process();
void setInputFile(const std::shared_ptr<tc::io::IStream>& file);
2019-01-31 09:10:19 +00:00
void setCliOutputMode(CliOutputMode type);
void setVerifyMode(bool verify);
const nn::hac::ContentMeta& getContentMeta() const;
private:
2021-09-30 11:41:57 +00:00
std::string mModuleName;
2019-01-31 09:10:19 +00:00
std::shared_ptr<tc::io::IStream> mFile;
2019-01-31 09:10:19 +00:00
CliOutputMode mCliOutputMode;
bool mVerify;
nn::hac::ContentMeta mCnmt;
void importCnmt();
void displayCnmt();
void displayContentMetaInfo(const nn::hac::ContentMetaInfo& content_meta_info, const std::string& prefix);
void displayContentMetaInfoList(const std::vector<nn::hac::ContentMetaInfo>& content_meta_info_list, const std::string& prefix);
};
}