From 082c950d1b17e7947b47709e7e1dc73691eda64e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Wed, 27 Jan 2016 01:48:37 +0100 Subject: [PATCH] -version flag for jenkins. --- src/Components/Modules/Singleton.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Components/Modules/Singleton.cpp b/src/Components/Modules/Singleton.cpp index 93ff4612..3295fd6d 100644 --- a/src/Components/Modules/Singleton.cpp +++ b/src/Components/Modules/Singleton.cpp @@ -11,6 +11,12 @@ namespace Components Singleton::Singleton() { + if (Flags::HasFlag("version")) + { + printf("iw4x IW4x r" REVISION_STR "-" MILESTONE " (built " __DATE__ " " __TIME__ ")\n"); + ExitProcess(0); + } + if (Dedicated::IsDedicated() || ZoneBuilder::IsEnabled()) return; Singleton::FirstInstance = (CreateMutex(NULL, FALSE, "iw4x_mutex") && GetLastError() != ERROR_ALREADY_EXISTS);