diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-10-08 13:15:30 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-10-08 13:15:30 -0700 |
commit | a881d6e0e7c4e51ad199c1f1f14b6c574c25686b (patch) | |
tree | 20fe842102ffdb9c0ff07d41e00dffd36767f912 /src | |
parent | 41c5b02bbdb78381bc203251fe2a2ef034264642 (diff) | |
download | tmwa-a881d6e0e7c4e51ad199c1f1f14b6c574c25686b.tar.gz tmwa-a881d6e0e7c4e51ad199c1f1f14b6c574c25686b.tar.bz2 tmwa-a881d6e0e7c4e51ad199c1f1f14b6c574c25686b.tar.xz tmwa-a881d6e0e7c4e51ad199c1f1f14b6c574c25686b.zip |
Don't rebuild atcommand.cpp on version changes
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.cpp | 14 | ||||
-rw-r--r-- | src/mmo/version.cpp | 5 | ||||
-rw-r--r-- | src/mmo/version.hpp | 5 |
3 files changed, 14 insertions, 10 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 858f617..9b53497 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -24,8 +24,6 @@ #include <algorithm> -#include "../conf/version.hpp" - #include "../compat/nullpo.hpp" #include "../compat/fun.hpp" @@ -4919,14 +4917,10 @@ static ATCE atcommand_source(Session *s, dumb_ptr<map_session_data>, ZString) { - clif_displaymessage(s, - "This server code consists of Free Software under GPL3&AGPL3"_s); - clif_displaymessage(s, - "This is commit " VERSION_HASH ", also known as " VERSION_FULL ""_s); - clif_displaymessage(s, - "The version is " VERSION_STRING ""_s); - clif_displaymessage(s, - "For source, see " VENDOR_SOURCE ""_s); + clif_displaymessage(s, VERSION_INFO_HEADER); + clif_displaymessage(s, VERSION_INFO_COMMIT); + clif_displaymessage(s, VERSION_INFO_NUMBER); + clif_displaymessage(s, VERSION_INFO_URL); return ATCE::OKAY; } diff --git a/src/mmo/version.cpp b/src/mmo/version.cpp index 2e337c1..7c63614 100644 --- a/src/mmo/version.cpp +++ b/src/mmo/version.cpp @@ -73,4 +73,9 @@ bool extract(XString str, Version *vers) // It would've been useful during the magic migration. return extract(str, record<'.'>(&vers->major, &vers->minor, &vers->patch)); } + +LString VERSION_INFO_HEADER = "This server code consists of Free Software under GPL3&AGPL3"_s; +LString VERSION_INFO_COMMIT = "This is commit " VERSION_HASH ", also known as " VERSION_FULL ""_s; +LString VERSION_INFO_NUMBER = "The version is " VERSION_STRING ""_s; +LString VERSION_INFO_URL = "For source, see " VENDOR_SOURCE ""_s; } // namespace tmwa diff --git a/src/mmo/version.hpp b/src/mmo/version.hpp index 440dce6..6afcd58 100644 --- a/src/mmo/version.hpp +++ b/src/mmo/version.hpp @@ -90,4 +90,9 @@ extern Version CURRENT_MAP_SERVER_VERSION; extern LString CURRENT_VERSION_STRING; bool extract(XString str, Version *vers); + +extern LString VERSION_INFO_HEADER; +extern LString VERSION_INFO_COMMIT; +extern LString VERSION_INFO_NUMBER; +extern LString VERSION_INFO_URL; } // namespace tmwa |