Added build arc to version output and relocated.

This commit is contained in:
dolphin6k 2023-10-28 18:57:04 +09:00
parent 10a0a34b1b
commit 9eb8fcff43
2 changed files with 16 additions and 13 deletions

View file

@ -30529,6 +30529,15 @@ int main(int argc, char *argv[])
freopen(stdout_win32, "w", stdout); /* redirect stdout to a file */
freopen(stderr_win32, "w", stderr); /* redirect stderr to a file */
#endif
printf("Tux Paint Version " VER_VERSION "");
#ifdef WIN64
printf("- x86_64");
#else
printf("- i686");
#endif
printf(" (" VER_DATE ")\n");
printf("Running on ");
win32_print_version();
#endif
#ifdef DEBUG
@ -30580,12 +30589,6 @@ int main(int argc, char *argv[])
}
#endif
#ifdef WIN32
printf("Tux Paint Version " VER_VERSION " (" VER_DATE ")\n");
printf("Running on ");
win32_print_version();
#endif
claim_to_be_ready();
mainloop();

View file

@ -8,13 +8,13 @@ void win32_print_version(void);
void win32_print_version(void)
{
char *verStr;
unsigned int Version = 0;
unsigned int Version = 0;
unsigned int Build = 0;
Version = GetVersion();
if (Version < 0x80000000)
if (Version < 0x80000000)
Build = (DWORD)(HIWORD(Version));
if (IsWindows10OrGreater()) {
if (Build < 22000){
verStr = strdup("Windows 10");
@ -40,12 +40,12 @@ void win32_print_version(void)
}
printf ("Microsoft %s", verStr);
if (IsWindowsServer()){
printf(" Server");
}
if (Version < 0x80000000){
if (Version < 0x80000000){
printf(" (Build %d)\n", Build);
}
}