mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
Show commit hash in version string
Also, update to 0.2.2
This commit is contained in:
parent
457dc6520b
commit
a1d01aec98
|
@ -89,7 +89,7 @@ extern "C" {
|
|||
*
|
||||
* Reset to zero each major or minor version
|
||||
*/
|
||||
#define LIBOBS_API_PATCH_VER 1
|
||||
#define LIBOBS_API_PATCH_VER 2
|
||||
|
||||
#define LIBOBS_API_VER ((LIBOBS_API_MAJOR_VER << 24) | \
|
||||
(LIBOBS_API_MINOR_VER << 16) | \
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <util/bmem.h>
|
||||
#include <util/dstr.h>
|
||||
#include <util/platform.h>
|
||||
#include <obs-config.h>
|
||||
#include <obs.hpp>
|
||||
|
||||
#include <QProxyStyle>
|
||||
|
@ -209,10 +210,14 @@ string OBSApp::GetVersionString() const
|
|||
LIBOBS_API_MINOR_VER << "." <<
|
||||
LIBOBS_API_PATCH_VER;
|
||||
|
||||
#ifndef _WIN32
|
||||
ver << " (" << OBS_VERSION << ")";
|
||||
#else
|
||||
if (sizeof(void*) == 8)
|
||||
ver << " (64bit)";
|
||||
else
|
||||
ver << " (32bit)";
|
||||
#endif
|
||||
|
||||
return ver.str();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue