mirror of
https://github.com/jakcron/nstool
synced 2024-11-22 21:49:30 +00:00
37 lines
No EOL
861 B
C++
37 lines
No EOL
861 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:
|
|
std::string mModuleName;
|
|
|
|
std::shared_ptr<tc::io::IStream> mFile;
|
|
CliOutputMode mCliOutputMode;
|
|
bool mVerify;
|
|
|
|
nn::hac::KernelInitialProcessHeader mHdr;
|
|
tc::ByteData mTextBlob, mRoBlob, mDataBlob;
|
|
|
|
void importHeader();
|
|
void importCodeSegments();
|
|
size_t decompressData(const byte_t* src, size_t src_len, byte_t* dst, size_t dst_capacity);
|
|
void displayHeader();
|
|
void displayKernelCap(const nn::hac::KernelCapabilityControl& kern);
|
|
|
|
std::string formatMappingAsString(const nn::hac::MemoryMappingHandler::sMemoryMapping& map) const;
|
|
};
|
|
|
|
} |