mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
34 lines
No EOL
688 B
C++
34 lines
No EOL
688 B
C++
#pragma once
|
|
#include "types.h"
|
|
|
|
#include <nn/hac/KernelInitialProcessHeader.h>
|
|
|
|
namespace nstool {
|
|
|
|
class KipProcess
|
|
{
|
|
public:
|
|
KipProcess();
|
|
|
|
void process();
|
|
|
|
void setInputFile(const std::shared_ptr<tc::io::IStream>& file);
|
|
void setCliOutputMode(CliOutputMode type);
|
|
void setVerifyMode(bool verify);
|
|
private:
|
|
const std::string kModuleName = "KipProcess";
|
|
|
|
std::shared_ptr<tc::io::IStream> mFile;
|
|
CliOutputMode mCliOutputMode;
|
|
bool mVerify;
|
|
|
|
nn::hac::KernelInitialProcessHeader mHdr;
|
|
tc::ByteData mTextBlob, mRoBlob, mDataBlob;
|
|
|
|
void importHeader();
|
|
void importCodeSegments();
|
|
void displayHeader();
|
|
void displayKernelCap(const nn::hac::KernelCapabilityControl& kern);
|
|
};
|
|
|
|
} |