#pragma once #include #include #include #include #include #include #include "common.h" class KipProcess { public: KipProcess(); void process(); void setInputFile(const fnd::SharedPtr& file); void setCliOutputMode(CliOutputMode type); void setVerifyMode(bool verify); private: const std::string kModuleName = "KipProcess"; fnd::SharedPtr mFile; CliOutputMode mCliOutputMode; bool mVerify; nn::hac::KernelInitialProcessHeader mHdr; fnd::Vec mTextBlob, mRoBlob, mDataBlob; void importHeader(); void importCodeSegments(); void displayHeader(); void displayKernelCap(const nn::hac::KernelCapabilityControl& kern); };