Skip to content
Permalink
Browse files

Add new plugin defines regarding the AMX Mod X version (#723)

* Add AMXX_VERSION_LOCAL define

* Add new defines regarding version of AMX Mod X

Added new defines: AMXX_VERSION_MAJOR_NUM and AMXX_VERSION_MINOR_NUM

* Rename AMXX_VERSION_LOCAL define

Define AMXX_VERSION_LOCAL was renamed to AMXX_VERSION_LOCAL_REV_NUM
  • Loading branch information...
eat1k authored and Arkshine committed Oct 17, 2019
1 parent 163afa0 commit dafabc73c01716420cf8dc3f8b4e9e93bb22ff51
Showing with 11 additions and 8 deletions.
  1. +11 −8 support/generate_headers.py
@@ -88,14 +88,17 @@ def output_version_headers():
#endif
#define _amxmodx_version_included
#define AMXX_VERSION_TAG \"{tag}\"
#define AMXX_VERSION_CSET \"{shorthash}\"
#define AMXX_VERSION_MAJOR \"{major}\"
#define AMXX_VERSION_MINOR \"{minor}\"
#define AMXX_VERSION_RELEASE \"{release}\"
#define AMXX_VERSION_LOCAL_REV \"{count}\"
#define AMXX_VERSION {major}.{minor}{release}
#define AMXX_VERSION_NUM {version_num}
#define AMXX_VERSION_TAG \"{tag}\"
#define AMXX_VERSION_CSET \"{shorthash}\"
#define AMXX_VERSION_MAJOR \"{major}\"
#define AMXX_VERSION_MAJOR_NUM {major}
#define AMXX_VERSION_MINOR \"{minor}\"
#define AMXX_VERSION_MINOR_NUM {minor}
#define AMXX_VERSION_RELEASE \"{release}\"
#define AMXX_VERSION_LOCAL_REV_NUM {count}
#define AMXX_VERSION_LOCAL_REV \"{count}\"
#define AMXX_VERSION {major}.{minor}{release}
#define AMXX_VERSION_NUM {version_num}
stock const AMXX_VERSION_STR[] = "{fullstring}";
""".format(

0 comments on commit dafabc7

Please sign in to comment.
You can’t perform that action at this time.