Copy the version string obtained from svnversion at runtime instead of

using it as a constant in several places. Saves a few bytes and the time
it takes to recompile a bunch of files whenever svnversion twitches.

Using the SVN version string as an integer is not portable as the Unix
svnversion always includes e.g. the "M" suffix for a modified tree.

Windows people, please check my change to Plugin_VideoDX9/Src/main.cpp
as I don't really understand how _T() and the %hs format string work.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5852 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-07-08 15:25:01 +00:00
parent 75be9ce40d
commit 39ae36398f
14 changed files with 21 additions and 51 deletions

View File

@ -17,7 +17,6 @@
#include "Common.h"
#include "AboutDolphin.h"
#include "svnrev.h"
#include "CPUDetect.h"
#include "../resources/dolphin_logo.cpp"
@ -49,7 +48,7 @@ void AboutDolphin::CreateGUIControls()
wxBitmap(iDolphinLogo), wxDefaultPosition, wxDefaultSize, 0);
std::string Text = std::string("") +
"Dolphin SVN revision " + SVN_REV_STR + "\n"
"Dolphin SVN revision " + svn_rev_str + "\n"
"Copyright (c) 2003-2010+ Dolphin Team\n"
"\n"
"Dolphin is a Gamecube/Wii emulator, which was\n"