mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Add commit hash & date to -version
flag output
This prints the commit hash and date in the same order as they are printed on the title screen.
This commit is contained in:
parent
52124f7010
commit
e7e74bb8ab
1 changed files with 4 additions and 1 deletions
|
@ -388,8 +388,11 @@ int main(int argc, char *argv[])
|
|||
if (ARG("-version"))
|
||||
{
|
||||
/* Just print the version and exit. No vlogging. */
|
||||
/* TODO: Also print commit date and hash, if applicable. */
|
||||
puts("VVVVVV " RELEASE_VERSION);
|
||||
#ifdef INTERIM_VERSION_EXISTS
|
||||
puts(COMMIT_DATE);
|
||||
puts(INTERIM_COMMIT);
|
||||
#endif
|
||||
VVV_exit(0);
|
||||
}
|
||||
else if (ARG("-renderer"))
|
||||
|
|
Loading…
Reference in a new issue