Emit library versions when running pioneer -version

This is super useful for checking the build system because you can run
the binary quickly and get some output to check that it doesn't totally
fail at load time, without actually waiting for the full game to load.
master
John Bartholomew 2018-08-26 21:04:04 +01:00
parent 114600e614
commit 43c5027a94
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include "galaxy/GalaxyGenerator.h"
#include "galaxy/Galaxy.h"
#include "utils.h"
#include "versioningInfo.h"
#include <cstdio>
#include <cstdlib>
@ -206,6 +207,7 @@ start:
std::string version(PIONEER_VERSION);
if (strlen(PIONEER_EXTRAVERSION)) version += " (" PIONEER_EXTRAVERSION ")";
Output("pioneer %s\n", version.c_str());
OutputVersioningInfo();
break;
}