-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added AMXX and ReAPI version checker for compiler
- Loading branch information
1 parent
5b3bb17
commit ea19831
Showing
5 changed files
with
60 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#if defined _mm_version_included_ | ||
#endinput | ||
#endif | ||
#define _mm_version_included_ | ||
|
||
// Do NOT modify this file! | ||
|
||
/** | ||
* AMX Mod X version check | ||
*/ | ||
#if AMXX_VERSION_NUM < 200 | ||
#error "Multimod Manager CS requires AMX Mod X 1.10 or higher. Download from: https://www.amxmodx.org/downloads-new.php?branch=master" | ||
#endif | ||
|
||
/** | ||
* ReAPI version check | ||
*/ | ||
#if REAPI_VERSION < 524300 | ||
#error "Multimod Manager CS requires ReAPI 5.24.300 or higher. Download from: https://github.com/s1lentq/reapi/releases/latest" | ||
#endif | ||
|
||
#define MM_VERSION_MAJOR 2 | ||
#define MM_VERSION_MINOR 2 | ||
#define MM_VERSION_COMMIT 207 | ||
|
||
#define PLUGIN_VERSION fmt("v%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_COMMIT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
addons/amxmodx/scripting/include/multimod_manager_version.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#if defined _multimod_manager_version_included_ | ||
#endinput | ||
#endif | ||
#define _multimod_manager_version_included_ | ||
|
||
// Do NOT modify this file! | ||
|
||
/** | ||
* AMX Mod X version check | ||
*/ | ||
#if defined AMXX_VERSION_NUM | ||
#if AMXX_VERSION_NUM < 200 | ||
#error "[API] Multimod Manager CS requires AMX Mod X 1.10 or higher. Download from: https://www.amxmodx.org/downloads-new.php?branch=master" | ||
#endif | ||
#else | ||
#error "[API] Multimod Manager CS: please include multimod_manager_natives.inc after including amxmodx.inc." | ||
#endif | ||
|
||
#define MM_VERSION_MAJOR 2 | ||
#define MM_VERSION_MINOR 2 | ||
#define MM_VERSION_COMMIT 207 | ||
|
||
#define MM_NATIVES_API_VER fmt("v%d.%d.%d", MM_VERSION_MAJOR, MM_VERSION_MINOR, MM_VERSION_COMMIT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters