diff --git a/Source/Core/Common/Common.vcproj b/Source/Core/Common/Common.vcproj
index c2268b0c11..b82640a0a9 100644
--- a/Source/Core/Common/Common.vcproj
+++ b/Source/Core/Common/Common.vcproj
@@ -888,6 +888,10 @@
RelativePath=".\Src\Timer.h"
>
+
+
diff --git a/Source/Core/Common/Src/Common.h b/Source/Core/Common/Src/Common.h
index 80bd3d75e8..16e2da9ffd 100644
--- a/Source/Core/Common/Src/Common.h
+++ b/Source/Core/Common/Src/Common.h
@@ -25,6 +25,10 @@
#include
#include
+// SVN version number
+extern const char *svn_rev_str;
+extern const char *netplay_dolphin_ver;
+
// Force enable logging in the right modes. For some reason, something had changed
// so that debugfast no longer logged.
#if defined(_DEBUG) || defined(DEBUGFAST)
diff --git a/Source/Core/Common/Src/SConscript b/Source/Core/Common/Src/SConscript
index 7493db335a..4824e0bc41 100644
--- a/Source/Core/Common/Src/SConscript
+++ b/Source/Core/Common/Src/SConscript
@@ -34,6 +34,7 @@ files = [
"Thunk.cpp",
"Timer.cpp",
"Thread.cpp",
+ "Version.cpp",
"x64Emitter.cpp",
"x64Analyzer.cpp",
"Crypto/bn.cpp",
diff --git a/Source/Core/Common/Src/svnrev_template.h b/Source/Core/Common/Src/svnrev_template.h
index 9d1bb27bef..0d3e482e1b 100644
--- a/Source/Core/Common/Src/svnrev_template.h
+++ b/Source/Core/Common/Src/svnrev_template.h
@@ -1,2 +1 @@
-#define SVN_REV $WCREV$
#define SVN_REV_STR "$WCMODS?$WCREV$M:$WCREV$$"
diff --git a/Source/Core/Common/makesvnrev.sh b/Source/Core/Common/makesvnrev.sh
deleted file mode 100755
index 2caf77e070..0000000000
--- a/Source/Core/Common/makesvnrev.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-REV=`svnversion -n ./`
-echo $REV
-
-cat > Src/svnrev.h <
#include
-#include "svnrev.h"
#include "Common.h" // Common
@@ -358,15 +357,6 @@ bool DolphinApp::OnInit()
SetEnableAlert(SConfig::GetInstance().m_LocalCoreStartupParameter.bUsePanicHandlers);
- // Create the window title
-#ifdef _DEBUG
- const char *title = "Dolphin Debug SVN R " SVN_REV_STR;
-#elif defined DEBUGFAST
- const char *title = "Dolphin Debugfast SVN R " SVN_REV_STR;
-#else
- const char *title = "Dolphin SVN R " SVN_REV_STR;
-#endif
-
int x = SConfig::GetInstance().m_LocalCoreStartupParameter.iPosX;
int y = SConfig::GetInstance().m_LocalCoreStartupParameter.iPosY;
int w = SConfig::GetInstance().m_LocalCoreStartupParameter.iWidth;
@@ -383,8 +373,10 @@ bool DolphinApp::OnInit()
x = y = -1;
#endif
- main_frame = new CFrame((wxFrame*)NULL, wxID_ANY, wxString::FromAscii(title),
- wxPoint(x, y), wxSize(w, h), UseDebugger, UseLogger);
+ main_frame = new CFrame((wxFrame*)NULL, wxID_ANY,
+ wxString::FromAscii(svn_rev_str),
+ wxPoint(x, y), wxSize(w, h),
+ UseDebugger, UseLogger);
SetTopWindow(main_frame);
#if defined HAVE_X11 && HAVE_X11
diff --git a/Source/Core/DolphinWX/Src/NetPlay.h b/Source/Core/DolphinWX/Src/NetPlay.h
index 89f5ab3066..6a44ba04e1 100644
--- a/Source/Core/DolphinWX/Src/NetPlay.h
+++ b/Source/Core/DolphinWX/Src/NetPlay.h
@@ -12,7 +12,6 @@
#include
#include "GCPadStatus.h"
-#include "svnrev.h"
//#include
@@ -41,20 +40,6 @@ typedef std::vector NetWiimote;
#define NETPLAY_VERSION "Dolphin NetPlay 2.2"
-#ifdef _M_X64
- #define NP_ARCH "x64"
-#else
- #define NP_ARCH "x86"
-#endif
-
-#ifdef _WIN32
- #define NETPLAY_DOLPHIN_VER SVN_REV_STR" W"NP_ARCH
-#elif __APPLE__
- #define NETPLAY_DOLPHIN_VER SVN_REV_STR" M"NP_ARCH
-#else
- #define NETPLAY_DOLPHIN_VER SVN_REV_STR" L"NP_ARCH
-#endif
-
// messages
#define NP_MSG_PLAYER_JOIN 0x10
#define NP_MSG_PLAYER_LEAVE 0x11
diff --git a/Source/Core/DolphinWX/Src/NetPlayClient.cpp b/Source/Core/DolphinWX/Src/NetPlayClient.cpp
index b9d54c9065..ccd40b19ca 100644
--- a/Source/Core/DolphinWX/Src/NetPlayClient.cpp
+++ b/Source/Core/DolphinWX/Src/NetPlayClient.cpp
@@ -24,7 +24,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, const s
// send connect message
sf::Packet spac;
spac << NETPLAY_VERSION;
- spac << NETPLAY_DOLPHIN_VER;
+ spac << netplay_dolphin_ver;
spac << name;
m_socket.Send(spac);
@@ -61,7 +61,7 @@ NetPlayClient::NetPlayClient(const std::string& address, const u16 port, const s
Player player;
player.name = name;
player.pid = m_pid;
- player.revision = NETPLAY_DOLPHIN_VER;
+ player.revision = netplay_dolphin_ver;
// add self to player list
m_players[m_pid] = player;
diff --git a/Source/Core/DolphinWX/Src/NetPlayServer.cpp b/Source/Core/DolphinWX/Src/NetPlayServer.cpp
index e35a8d90d7..f5bafd9d45 100644
--- a/Source/Core/DolphinWX/Src/NetPlayServer.cpp
+++ b/Source/Core/DolphinWX/Src/NetPlayServer.cpp
@@ -24,7 +24,7 @@ NetPlayServer::NetPlayServer(const u16 port, const std::string& name, NetPlayDia
{
Client player;
player.pid = 0;
- player.revision = NETPLAY_DOLPHIN_VER;
+ player.revision = netplay_dolphin_ver;
player.socket = m_socket;
player.name = name;
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/main.cpp b/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
index 77d631bf93..6b253b255c 100644
--- a/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
+++ b/Source/Plugins/Plugin_VideoDX11/Src/main.cpp
@@ -27,7 +27,6 @@
#include "Thread.h"
#include "LogManager.h"
-#include "svnrev.h"
#include "resource.h"
#include "main.h"
#include "VideoConfig.h"
@@ -162,7 +161,7 @@ unsigned int Callback_PeekMessages()
void UpdateFPSDisplay(const char* text)
{
char temp[512];
- sprintf_s(temp, 512, "SVN R%i: DX11: %s", SVN_REV, text);
+ sprintf_s(temp, 512, "SVN R%s: DX11: %s", svn_rev_str, text);
SetWindowTextA(EmuWindow::GetWnd(), temp);
}
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/main.cpp b/Source/Plugins/Plugin_VideoDX9/Src/main.cpp
index b99dd1fbec..711e21a351 100644
--- a/Source/Plugins/Plugin_VideoDX9/Src/main.cpp
+++ b/Source/Plugins/Plugin_VideoDX9/Src/main.cpp
@@ -26,14 +26,11 @@
GFXConfigDialogDX *m_ConfigFrame = NULL;
#endif // HAVE_WX
-
-
#if defined(HAVE_WX) && HAVE_WX
#include "Debugger/Debugger.h"
GFXDebuggerDX9 *m_DebuggerFrame = NULL;
#endif // HAVE_WX
-#include "svnrev.h"
#include "main.h"
#include "VideoConfig.h"
#include "Fifo.h"
@@ -165,8 +162,7 @@ unsigned int Callback_PeekMessages()
void UpdateFPSDisplay(const char *text)
{
TCHAR temp[512];
- swprintf_s(temp, 512, _T("SVN R%i: DX9: %hs"), SVN_REV, text);
- SetWindowText(EmuWindow::GetWnd(), temp);
+ swprintf_s(temp, 512, _T("SVN R%s: DX9: %hs"), svn_rev_str, text);
}
void GetDllInfo (PLUGIN_INFO* _PluginInfo)
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
index 8c31d7dd7a..7dcc4fa051 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/GLUtil.cpp
@@ -18,7 +18,6 @@
#include "Globals.h"
#include "VideoConfig.h"
#include "IniFile.h"
-#include "svnrev.h"
#include "Setup.h"
#include "Render.h"
@@ -113,7 +112,7 @@ unsigned int Callback_PeekMessages()
void UpdateFPSDisplay(const char *text)
{
char temp[512];
- sprintf(temp, "SVN R%s: GL: %s", SVN_REV_STR, text);
+ sprintf(temp, "SVN R%s: GL: %s", svn_rev_str, text);
OpenGL_SetWindowText(temp);
}
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
index af3ee02465..3144851950 100644
--- a/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
+++ b/Source/Plugins/Plugin_VideoSoftware/Src/GLUtil.cpp
@@ -18,7 +18,6 @@
#include "main.h"
#include "VideoConfig.h"
#include "IniFile.h"
-#include "svnrev.h"
#include "Setup.h"
//#include "Render.h"
@@ -113,7 +112,7 @@ unsigned int Callback_PeekMessages()
void UpdateFPSDisplay(const char *text)
{
char temp[512];
- sprintf(temp, "SVN R%s: SW: %s", SVN_REV_STR, text);
+ sprintf(temp, "SVN R%s: SW: %s", svn_rev_str, text);
OpenGL_SetWindowText(temp);
}
// =========================