# HG changeset patch # User Teemu Piippo # Date 1452523170 -7200 # Node ID 6a0d6bddf2ab16bb373717bfe3e054cea2f78913 # Parent d8ecf07a76cf7d13ebb3a33575e4a74dc6d274bc Moved the APPNAME also inside version.cpp (now application_name()) and changed it to uppercase diff -r d8ecf07a76cf -r 6a0d6bddf2ab sources/interface.cpp --- 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()); } // ------------------------------------------------------------------------------------------------- diff -r d8ecf07a76cf -r 6a0d6bddf2ab sources/version.cpp --- 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; diff -r d8ecf07a76cf -r 6a0d6bddf2ab sources/version.h --- 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();