1
0
Fork 0
mirror of https://github.com/jakcron/nstool.git synced 2025-01-10 19:55:27 +00:00
nstool/src/CnmtProcess.h
2021-09-30 19:41:57 +08:00

37 lines
787 B
C++

#pragma once
#include "types.h"
#include <nn/hac/ContentMeta.h>
namespace nstool {
class CnmtProcess
{
public:
CnmtProcess();
void process();
void setInputFile(const std::shared_ptr<tc::io::IStream>& file);
void setCliOutputMode(CliOutputMode type);
void setVerifyMode(bool verify);
const nn::hac::ContentMeta& getContentMeta() const;
private:
std::string mModuleName;
std::shared_ptr<tc::io::IStream> mFile;
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);
};
}