mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
39 lines
No EOL
933 B
C++
39 lines
No EOL
933 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);
|
|
|
|
const char* getInstructionTypeStr(bool is64Bit) const;
|
|
const char* getAddressSpaceStr(bool is64Bit) const;
|
|
const char* getMemoryPoolStr(bool isSystemPool) const;
|
|
}; |