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