From 36746dd309f2b4fd64e74318a9084d52a6fceddc Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 18 May 2015 12:10:07 +0000 Subject: [PATCH] Added version to the About box. git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1445 a31d4220-a93d-0410-bf67-fe4944624d44 --- src/wx/cmdevents.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index 4a8808e1..89c6e060 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -21,6 +21,7 @@ extern "C" { #include "../common/ConfigManager.h" #include "../gb/gbPrinter.h" #include "../gba/agbprint.h" +#include "../../version.h" #if (wxMAJOR_VERSION < 3) #define GetXRCDialog(n) \ @@ -2524,7 +2525,11 @@ EVT_HANDLER(wxID_ABOUT, "About...") { wxAboutDialogInfo ai; ai.SetName(wxT("VisualBoyAdvance-M")); - ai.SetVersion(wxT("")); + wxString version = wxT(""); +#ifdef SVNCOMPILE + version = version + wxT("-") + wxT(SVN_REV_STR); +#endif + ai.SetVersion(version); // setting website, icon, license uses custom aboutbox on win32 & macosx // but at least win32 standard about is nothing special ai.SetWebSite(wxT("http://www.vba-m.com/")); @@ -2565,7 +2570,7 @@ EVT_HANDLER(wxID_ABOUT, "About...") ai.AddDeveloper(wxT("Costis")); ai.AddDeveloper(wxT("chrono")); ai.AddDeveloper(wxT("xKiv")); - ai.AddDeveloper(wxT("Skidau")); + ai.AddDeveloper(wxT("skidau")); ai.AddDeveloper(wxT("TheCanadianBacon")); ai.AddDeveloper(wxT("Orig. VBA team")); wxAboutBox(ai);