1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09: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:
Misa 2022-08-22 21:27:20 -07:00
parent 52124f7010
commit e7e74bb8ab

View file

@ -388,8 +388,11 @@ int main(int argc, char *argv[])
if (ARG("-version")) if (ARG("-version"))
{ {
/* Just print the version and exit. No vlogging. */ /* Just print the version and exit. No vlogging. */
/* TODO: Also print commit date and hash, if applicable. */
puts("VVVVVV " RELEASE_VERSION); puts("VVVVVV " RELEASE_VERSION);
#ifdef INTERIM_VERSION_EXISTS
puts(COMMIT_DATE);
puts(INTERIM_COMMIT);
#endif
VVV_exit(0); VVV_exit(0);
} }
else if (ARG("-renderer")) else if (ARG("-renderer"))