Mon, 11 Jan 2016 16:39:30 +0200
Moved the APPNAME also inside version.cpp (now application_name()) and changed it to uppercase
sources/interface.cpp | file | annotate | diff | comparison | revisions | |
sources/version.cpp | file | annotate | diff | comparison | revisions | |
sources/version.h | file | annotate | diff | comparison | revisions |
--- a/sources/interface.cpp Mon Jan 11 16:33:08 2016 +0200 +++ b/sources/interface.cpp Mon Jan 11 16:39:30 2016 +0200 @@ -1116,7 +1116,7 @@ // void Interface::reset_title() { - Title.sprintf (APPNAME " %s (%s)", full_version_string(), changeset_date_string()); + Title.sprintf ("%s %s (%s)", application_name(), full_version_string(), changeset_date_string()); } // -------------------------------------------------------------------------------------------------
--- a/sources/version.cpp Mon Jan 11 16:33:08 2016 +0200 +++ b/sources/version.cpp Mon Jan 11 16:39:30 2016 +0200 @@ -56,6 +56,13 @@ // ------------------------------------------------------------------------------------------------- // +const char* application_name() +{ + return "ZFC9000"; +} + +// ------------------------------------------------------------------------------------------------- +// const char* version_string() { return VERSION_STRING;
--- a/sources/version.h Mon Jan 11 16:33:08 2016 +0200 +++ b/sources/version.h Mon Jan 11 16:39:30 2016 +0200 @@ -29,7 +29,9 @@ */ #pragma once -#define APPNAME "zfc9000" + +// Returns the application name (ZFC9000) +const char* application_name(); // Returns the bare version string (1.2.3) const char* version_string();