Use OBS_CONFIG as the actual version string

I didn't understand how tags worked so I was trying to filter it out
when I should really be using it for the actual version string.
This commit is contained in:
jp9000 2014-07-14 09:51:21 -07:00
parent b7e0c9fb22
commit 633799f1c3

View file

@ -273,28 +273,16 @@ bool OBSApp::OBSInit()
string OBSApp::GetVersionString() const
{
stringstream ver;
ver << "v" <<
LIBOBS_API_MAJOR_VER << "." <<
#ifdef HAVE_OBSCONFIG_H
ver << OBS_VERSION;
#else
ver << LIBOBS_API_MAJOR_VER << "." <<
LIBOBS_API_MINOR_VER << "." <<
LIBOBS_API_PATCH_VER;
ver << " (";
#ifdef HAVE_OBSCONFIG_H
const char *hash = OBS_VERSION;
const char *temp = hash;
/* only use the commit hash from the OBS_VERSION string */
while (temp) {
if (*temp == '-')
temp++;
hash = temp;
temp = strchr(temp, '-');
}
ver << hash << ", ";
#endif
ver << " (";
#ifdef _WIN32
if (sizeof(void*) == 8)