nstool/src/NacpProcess.h

34 lines
630 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/ApplicationControlProperty.h>
namespace nstool {
2019-01-31 09:10:19 +00:00
class NacpProcess
{
public:
NacpProcess();
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::ApplicationControlProperty& getApplicationControlProperty() const;
private:
const std::string kModuleName = "NacpProcess";
std::shared_ptr<tc::io::IStream> mFile;
2019-01-31 09:10:19 +00:00
CliOutputMode mCliOutputMode;
bool mVerify;
nn::hac::ApplicationControlProperty mNacp;
void importNacp();
void displayNacp();
};
}