diff --git a/public/extensions/IBinTools.h b/public/extensions/IBinTools.h index ee34aaad..20f8abbb 100644 --- a/public/extensions/IBinTools.h +++ b/public/extensions/IBinTools.h @@ -37,6 +37,8 @@ #define SMINTERFACE_BINTOOLS_NAME "IBinTools" #define SMINTERFACE_BINTOOLS_VERSION 4 +// Backwards incompatible change for x64 support. +#define SMINTERFACE_BINTOOLS_MIN_VERSION 4 /** * @brief Function calling encoding utilities @@ -184,6 +186,15 @@ namespace SourceMod { return SMINTERFACE_BINTOOLS_VERSION; } + virtual bool IsVersionCompatible(unsigned int version) + { + if (version < SMINTERFACE_BINTOOLS_MIN_VERSION || version > SMINTERFACE_BINTOOLS_VERSION) + { + return false; + } + + return true; + } public: /** * @brief Creates a call decoder.