nstool/src/NacpProcess.h

34 lines
608 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:
2021-10-01 12:46:35 +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::ApplicationControlProperty mNacp;
void importNacp();
void displayNacp();
};
}