Fix and unify GetCoreVersion
Fixed for cmangos (tbc)
This commit is contained in:
@@ -52,12 +52,7 @@
|
||||
#include "AggressorAI.h"
|
||||
#include "BattleGroundMgr.h"
|
||||
#include "SQLStorages.h"
|
||||
#endif
|
||||
|
||||
#ifdef MANGOS
|
||||
#include "revision.h"
|
||||
#elif defined(CMANGOS)
|
||||
#include "revision_nr.h"
|
||||
#endif
|
||||
|
||||
#if (!defined(TBC) && !defined(CLASSIC))
|
||||
@@ -73,17 +68,17 @@ typedef Opcodes OpcodesList;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Note: if you add or change a CORE_NAME #define,
|
||||
* please update LuaGlobalFunctions::GetCoreName docstring.
|
||||
* Note: if you add or change a CORE_NAME or CORE_VERSION #define,
|
||||
* please update LuaGlobalFunctions::GetCoreName or LuaGlobalFunctions::GetCoreVersion documentation example string.
|
||||
*/
|
||||
#ifdef MANGOS
|
||||
#define CORE_NAME "MaNGOS"
|
||||
#define CORE_VERSION REVISION_NR
|
||||
#define CORE_VERSION REVISION_DATE " " REVISION_TIME
|
||||
#endif
|
||||
|
||||
#ifdef CMANGOS
|
||||
#define CORE_NAME "cMaNGOS"
|
||||
#define CORE_VERSION REVISION_NR
|
||||
#define CORE_VERSION REVISION_DATE " " REVISION_TIME
|
||||
#endif
|
||||
|
||||
#ifdef TRINITY
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace LuaGlobalFunctions
|
||||
/**
|
||||
* Returns emulator version
|
||||
*
|
||||
* - For TrinityCore returns the date of the last revision, e.g. `2014-08-13 17:27:22 +0300`
|
||||
* - For cMaNGOS/MaNGOS returns the revision number, e.g. `12708`
|
||||
* - For TrinityCore returns the date of the last revision, e.g. `2015-08-26 22:53:12 +0300`
|
||||
* - For cMaNGOS/MaNGOS returns the date and time of the last revision, e.g. `2015-09-06 13:18:50`
|
||||
*
|
||||
* @return string version
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user