From 37a8a897cf9fc119039a6bf1c34e84cf77da5e24 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 23 Feb 2003 06:26:01 +0000 Subject: [PATCH] log the build number --- stepmania/src/RageLog.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index d083613718..b156bf81ec 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -43,6 +43,10 @@ RageLog* LOG; // global and accessable from anywhere in the program #define LOG_FILE_NAME "log.txt" #define INFO_FILE_NAME "info.txt" +#if defined(WIN32) +extern unsigned long version_num; +extern const char *version_time; +#endif /* staticlog gets info.txt * crashlog gets log.txt */ @@ -76,6 +80,9 @@ RageLog::RageLog() this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d", 1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec ); this->Trace( "" ); +#if defined(WIN32) + this->Info("Compiled %s (build %i)", version_time, version_num); +#endif } RageLog::~RageLog()