mirror of
https://github.com/jakcron/nstool
synced 2024-11-23 05:59:29 +00:00
78 lines
No EOL
2.2 KiB
C++
78 lines
No EOL
2.2 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <vector>
|
|
#include <fnd/IByteModel.h>
|
|
#include <fnd/List.h>
|
|
#include <nn/hac/ThreadInfoHandler.h>
|
|
#include <nn/hac/SystemCallHandler.h>
|
|
#include <nn/hac/MemoryMappingHandler.h>
|
|
#include <nn/hac/InteruptHandler.h>
|
|
#include <nn/hac/MiscParamsHandler.h>
|
|
#include <nn/hac/KernelVersionHandler.h>
|
|
#include <nn/hac/HandleTableSizeHandler.h>
|
|
#include <nn/hac/MiscFlagsHandler.h>
|
|
|
|
namespace nn
|
|
{
|
|
namespace hac
|
|
{
|
|
class KernelCapabilityControl :
|
|
public fnd::IByteModel
|
|
{
|
|
public:
|
|
KernelCapabilityControl();
|
|
KernelCapabilityControl(const KernelCapabilityControl& other);
|
|
|
|
void operator=(const KernelCapabilityControl& other);
|
|
bool operator==(const KernelCapabilityControl& other) const;
|
|
bool operator!=(const KernelCapabilityControl& other) const;
|
|
|
|
// IByteModel
|
|
void toBytes();
|
|
void fromBytes(const byte_t* bytes, size_t len);
|
|
virtual const fnd::Vec<byte_t>& getBytes() const;
|
|
|
|
// variables (consider further abstraction?)
|
|
void clear();
|
|
const ThreadInfoHandler& getThreadInfo() const;
|
|
ThreadInfoHandler& getThreadInfo();
|
|
|
|
const SystemCallHandler& getSystemCalls() const;
|
|
SystemCallHandler& getSystemCalls();
|
|
|
|
const MemoryMappingHandler& getMemoryMaps() const;
|
|
MemoryMappingHandler& getMemoryMaps();
|
|
|
|
const InteruptHandler& getInterupts() const;
|
|
InteruptHandler& getInterupts();
|
|
|
|
const MiscParamsHandler& getMiscParams() const;
|
|
MiscParamsHandler& getMiscParams();
|
|
|
|
const KernelVersionHandler& getKernelVersion() const;
|
|
KernelVersionHandler& getKernelVersion();
|
|
|
|
const HandleTableSizeHandler& getHandleTableSize() const;
|
|
HandleTableSizeHandler& getHandleTableSize();
|
|
|
|
const MiscFlagsHandler& getMiscFlags() const;
|
|
MiscFlagsHandler& getMiscFlags();
|
|
|
|
private:
|
|
const std::string kModuleName = "KERNEL_CAPABILITY_CONTROL";
|
|
|
|
// raw binary
|
|
fnd::Vec<byte_t> mRawBinary;
|
|
|
|
// variables
|
|
ThreadInfoHandler mThreadInfo;
|
|
SystemCallHandler mSystemCalls;
|
|
MemoryMappingHandler mMemoryMap;
|
|
InteruptHandler mInterupts;
|
|
MiscParamsHandler mMiscParams;
|
|
KernelVersionHandler mKernelVersion;
|
|
HandleTableSizeHandler mHandleTableSize;
|
|
MiscFlagsHandler mMiscFlags;
|
|
};
|
|
}
|
|
} |