2017-07-12 14:02:10 +00:00
|
|
|
#pragma once
|
|
|
|
#include <nx/IKernelCapabilityHandler.h>
|
|
|
|
#include <nx/MiscFlagsEntry.h>
|
|
|
|
|
|
|
|
namespace nx
|
|
|
|
{
|
|
|
|
class MiscFlagsHandler :
|
|
|
|
public IKernelCapabilityHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum Flags
|
|
|
|
{
|
2017-07-15 08:28:01 +00:00
|
|
|
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
|
2017-07-12 14:02:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
MiscFlagsHandler();
|
|
|
|
|
2018-06-24 15:01:16 +00:00
|
|
|
void operator=(const MiscFlagsHandler& other);
|
2017-07-12 14:02:10 +00:00
|
|
|
bool operator==(const MiscFlagsHandler& other) const;
|
|
|
|
bool operator!=(const MiscFlagsHandler& other) const;
|
|
|
|
|
|
|
|
// kernel capabilty list in/out
|
2018-06-29 04:24:39 +00:00
|
|
|
void importKernelCapabilityList(const fnd::List<KernelCapabilityEntry>& caps);
|
|
|
|
void exportKernelCapabilityList(fnd::List<KernelCapabilityEntry>& caps) const;
|
2017-07-12 14:02:10 +00:00
|
|
|
void clear();
|
|
|
|
bool isSet() const;
|
|
|
|
|
|
|
|
// variables
|
2017-07-15 08:28:01 +00:00
|
|
|
const fnd::List<Flags>& getFlagList() const;
|
|
|
|
void setFlagList(fnd::List<Flags> flags);
|
|
|
|
|
2017-07-12 14:02:10 +00:00
|
|
|
private:
|
|
|
|
const std::string kModuleName = "MISC_FLAGS_HANDLER";
|
|
|
|
static const size_t kMaxKernelCapNum = 1;
|
|
|
|
|
|
|
|
bool mIsSet;
|
2017-07-15 08:28:01 +00:00
|
|
|
fnd::List<Flags> mFlags;
|
2017-07-12 14:02:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|