2019-01-31 09:10:19 +00:00
|
|
|
#pragma once
|
2021-09-28 11:15:54 +00:00
|
|
|
#include "types.h"
|
|
|
|
|
2019-01-31 09:10:19 +00:00
|
|
|
#include <nn/hac/ApplicationControlProperty.h>
|
|
|
|
|
2021-09-28 11:15:54 +00:00
|
|
|
namespace nstool {
|
2019-01-31 09:10:19 +00:00
|
|
|
|
|
|
|
class NacpProcess
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NacpProcess();
|
|
|
|
|
|
|
|
void process();
|
|
|
|
|
2021-09-28 11:15:54 +00:00
|
|
|
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";
|
|
|
|
|
2021-09-28 11:15:54 +00:00
|
|
|
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();
|
2021-09-28 11:15:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|