When debugging, put the git revision in the title

Useful for bug reports, user-friendly version still used when building
in release mode. A unix script for generating the git version is still
needed.
This commit is contained in:
Cornee Traas 2013-08-11 00:09:27 +02:00
parent cd3ad0b149
commit d249bfef4d
4 changed files with 87 additions and 2 deletions

View file

@ -2,6 +2,7 @@
#include "MainFrame.h"
#include "CompilerELF.h"
#include "git-version.h"
#include "Emu/System.h"
#include "Ini.h"
#include "Emu/GS/sysutil_video.h"
@ -34,7 +35,13 @@ MainFrame::MainFrame()
: FrameBase(NULL, wxID_ANY, "", "MainFrame", wxSize(280, 180))
, m_aui_mgr(this)
{
#ifdef _DEBUG
SetLabel(wxString::Format(_PRGNAME_ " git-" RPCS3_GIT_VERSION));
#else
SetLabel(wxString::Format(_PRGNAME_ " " _PRGVER_));
#endif
wxMenuBar& menubar(*new wxMenuBar());
wxMenu& menu_boot(*new wxMenu());