mirror of https://github.com/x64dbg/zydis
Removed old feature check flags
This commit is contained in:
parent
f1316c434e
commit
066e7f359d
|
@ -111,8 +111,6 @@ enum ZydisFeatures
|
|||
{
|
||||
ZYDIS_FEATURE_EVEX,
|
||||
ZYDIS_FEATURE_MVEX,
|
||||
ZYDIS_FEATURE_FLAGS,
|
||||
ZYDIS_FEATURE_CPUID
|
||||
};
|
||||
|
||||
/* ============================================================================================== */
|
||||
|
|
14
src/Zydis.c
14
src/Zydis.c
|
@ -45,24 +45,14 @@ ZydisBool ZydisIsFeatureEnabled(ZydisFeature feature)
|
|||
#else
|
||||
return ZYDIS_FALSE;
|
||||
#endif
|
||||
|
||||
case ZYDIS_FEATURE_MVEX:
|
||||
#ifndef ZYDIS_DISABLE_MVEX
|
||||
return ZYDIS_TRUE;
|
||||
#else
|
||||
return ZYDIS_FALSE;
|
||||
#endif
|
||||
case ZYDIS_FEATURE_FLAGS:
|
||||
#ifndef ZYDIS_DISABLE_FLAGS
|
||||
return ZYDIS_TRUE;
|
||||
#else
|
||||
return ZYDIS_FALSE;
|
||||
#endif
|
||||
case ZYDIS_FEATURE_CPUID:
|
||||
#ifndef ZYDIS_DISABLE_CPUID
|
||||
return ZYDIS_TRUE;
|
||||
#else
|
||||
return ZYDIS_FALSE;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return ZYDIS_FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue