summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/src/Main.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-07-20 15:12:12 +0000
committerhrydgard <hrydgard@gmail.com>2008-07-20 15:12:12 +0000
commiteaaea3da946831e3c11af76bb5ca3c53a03c34f8 (patch)
treed9677dbc5ca1e2ed443a84d65fdfbc29d4d3f313 /Source/Core/DolphinWX/src/Main.cpp
parent7765b3f556c8fa0a077344a9e6350482fc9c4a41 (diff)
Attempt at auto update SVN revision in title bar - let's see if it works for everyone, sorry Sonic, you'll have to find a linux solution (see svnrev_template.h). Also adds some smash bros cheats.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@34 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DolphinWX/src/Main.cpp')
-rw-r--r--Source/Core/DolphinWX/src/Main.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/src/Main.cpp b/Source/Core/DolphinWX/src/Main.cpp
index c395499390..f3170ce0e0 100644
--- a/Source/Core/DolphinWX/src/Main.cpp
+++ b/Source/Core/DolphinWX/src/Main.cpp
@@ -18,6 +18,7 @@
#include <vector>
#include <string>
+#include "svnrev.h"
#include "CPUDetect.h"
#include "Globals.h"
#include "Common.h"
@@ -86,8 +87,12 @@ bool DolphinApp::OnInit()
SConfig::GetInstance().LoadSettings();
wxInitAllImageHandlers();
// Create the main frame window
- main_frame = new CFrame((wxFrame*) NULL, wxID_ANY,
- _T("Dolphin"),
+#ifdef _DEBUG
+ const char *title = "Dolphin Debug SVN R " SVN_REV_STR;
+#else
+ const char *title = "Dolphin SVN R " SVN_REV_STR;
+#endif
+ main_frame = new CFrame((wxFrame*) NULL, wxID_ANY, title,
wxPoint(100, 100), wxSize(800, 600));
// create debugger