base init
This commit is contained in:
17
src/game/version.cpp
Normal file
17
src/game/version.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void WriteVersion()
|
||||
{
|
||||
#ifndef __WIN32__
|
||||
FILE* fp = fopen("version.txt", "w");
|
||||
|
||||
if (fp)
|
||||
{
|
||||
fprintf(fp, "game revision: 40250");
|
||||
//fprintf(fp, "game revision: %s\n", __SVN_VERSION__);
|
||||
//fprintf(fp, "%s@%s:%s\n", __USER__, __HOSTNAME__, __PWD__);
|
||||
fclose(fp);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user