mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user