add git derived version info
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#ifndef GIT_DESCRIBE_VERSION
|
||||
#define GIT_DESCRIBE_VERSION "unknown"
|
||||
#endif
|
||||
|
||||
void WriteVersion()
|
||||
{
|
||||
#ifndef OS_WINDOWS
|
||||
@@ -7,7 +11,7 @@ void WriteVersion()
|
||||
|
||||
if (fp)
|
||||
{
|
||||
fprintf(fp, "game revision: 40250");
|
||||
fprintf(fp, "game revision: %s\n", GIT_DESCRIBE_VERSION);
|
||||
//fprintf(fp, "game revision: %s\n", __SVN_VERSION__);
|
||||
//fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__);
|
||||
fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user