mirror of
https://github.com/jakcron/nstool.git
synced 2025-01-07 02:15:29 +00:00
41 lines
983 B
C++
41 lines
983 B
C++
#pragma once
|
|
#include <string>
|
|
#include <fnd/types.h>
|
|
#include <fnd/IFile.h>
|
|
#include <nn/hac/ContentMetaBinary.h>
|
|
|
|
#include "nstool.h"
|
|
|
|
class CnmtProcess
|
|
{
|
|
public:
|
|
CnmtProcess();
|
|
~CnmtProcess();
|
|
|
|
void process();
|
|
|
|
void setInputFile(fnd::IFile* file, bool ownIFile);
|
|
void setCliOutputMode(CliOutputMode type);
|
|
void setVerifyMode(bool verify);
|
|
|
|
const nn::hac::ContentMetaBinary& getContentMetaBinary() const;
|
|
|
|
private:
|
|
const std::string kModuleName = "CnmtProcess";
|
|
|
|
fnd::IFile* mFile;
|
|
bool mOwnIFile;
|
|
CliOutputMode mCliOutputMode;
|
|
bool mVerify;
|
|
|
|
nn::hac::ContentMetaBinary mCnmt;
|
|
|
|
void importCnmt();
|
|
void displayCnmt();
|
|
|
|
const char* getBoolStr(bool state) const;
|
|
const char* getContentTypeStr(nn::hac::cnmt::ContentType type) const;
|
|
const char* getContentMetaTypeStr(nn::hac::cnmt::ContentMetaType type) const;
|
|
const char* getUpdateTypeStr(nn::hac::cnmt::UpdateType type) const;
|
|
const char* getContentMetaAttrStr(nn::hac::cnmt::ContentMetaAttribute attr) const;
|
|
}; |