diff --git a/toonz/sources/common/tapptools/tenv.cpp b/toonz/sources/common/tapptools/tenv.cpp index 8b69f16..9918612 100644 --- a/toonz/sources/common/tapptools/tenv.cpp +++ b/toonz/sources/common/tapptools/tenv.cpp @@ -171,6 +171,9 @@ public: } m_applicationFullName = m_version.getAppName() + " " + m_applicationVersion; + if (m_version.hasAppNote()) + m_applicationFullName += " " + m_version.getAppNote(); + m_moduleName = m_version.getAppName(); m_rootVarName = toUpper(m_version.getAppName()) + "ROOT"; #ifdef _WIN32 diff --git a/toonz/sources/include/tversion.h b/toonz/sources/include/tversion.h index 82e17cf..4ce2162 100644 --- a/toonz/sources/include/tversion.h +++ b/toonz/sources/include/tversion.h @@ -10,6 +10,8 @@ public: std::string getAppName(void); float getAppVersion(void); float getAppRevision(void); + std::string getAppNote(void); + bool hasAppNote(void); std::string getAppVersionString(void); std::string getAppRevisionString(void); std::string getAppVersionInfo(std::string msg); @@ -18,6 +20,7 @@ private: const char *applicationName = "OpenToonz"; const float applicationVersion = 1.3; const float applicationRevision = 0; + const char *applicationNote = ""; }; std::string ToonzVersion::getAppName(void) { @@ -32,6 +35,13 @@ float ToonzVersion::getAppRevision(void) { float apprev = applicationRevision; return apprev; } +std::string ToonzVersion::getAppNote(void) { + std::string appnote = applicationNote; + return appnote; +} +bool ToonzVersion::hasAppNote(void) { + return *applicationNote != 0; +} std::string ToonzVersion::getAppVersionString(void) { char buffer[50]; sprintf(buffer, "%.1f", applicationVersion); @@ -49,6 +59,8 @@ std::string ToonzVersion::getAppVersionInfo(std::string msg) { appinfo += " " + msg + " v"; appinfo += getAppVersionString(); appinfo += "." + getAppRevisionString(); + if (hasAppNote()) + appinfo += " " + std::string(applicationNote); return appinfo; }