nstool/lib/nx/MiscFlagsHandler.h

59 lines
1.2 KiB
C
Raw Normal View History

#pragma once
#include <nx/IKernelCapabilityHandler.h>
#include <nx/MiscFlagsEntry.h>
namespace nx
{
class MiscFlagsHandler :
public IKernelCapabilityHandler
{
public:
enum Flags
{
FLAG_ENABLE_DEBUG,
FLAG_FORCE_DEBUG,
FLAG_UNK02,
FLAG_UNK03,
FLAG_UNK04,
FLAG_UNK05,
FLAG_UNK06,
FLAG_UNK07,
FLAG_UNK08,
FLAG_UNK09,
FLAG_UNK10,
FLAG_UNK11,
FLAG_UNK12,
FLAG_UNK13,
FLAG_UNK14,
FLAG_NUM
};
MiscFlagsHandler();
bool operator==(const MiscFlagsHandler& other) const;
bool operator!=(const MiscFlagsHandler& other) const;
void operator=(const MiscFlagsHandler& other);
// kernel capabilty list in/out
void importKernelCapabilityList(const fnd::List<KernelCapability>& caps);
void exportKernelCapabilityList(fnd::List<KernelCapability>& caps) const;
void clear();
bool isSet() const;
// variables
const fnd::List<Flags>& getFlagList() const;
void setFlagList(fnd::List<Flags> flags);
private:
const std::string kModuleName = "MISC_FLAGS_HANDLER";
static const size_t kMaxKernelCapNum = 1;
bool mIsSet;
fnd::List<Flags> mFlags;
void copyFrom(const MiscFlagsHandler& other);
bool isEqual(const MiscFlagsHandler& other) const;
};
}