1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-16 17:48:29 +02: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"))
{
/* 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"))