Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Only include scmrev.h from Version.cpp.
This way less code has to be rebuilt whenever that file gets
regenerated.
  • Loading branch information
comex committed Sep 24, 2013
1 parent 146cf56 commit 2f384c7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Source/Core/Common/Src/Common.h
Expand Up @@ -13,7 +13,10 @@
#include <string.h>

// SVN version number
extern const char *scm_desc_str;
extern const char *scm_branch_str;
extern const char *scm_rev_str;
extern const char *scm_rev_git_str;
extern const char *netplay_dolphin_ver;

// Force enable logging in the right modes. For some reason, something had changed
Expand Down
3 changes: 0 additions & 3 deletions Source/Core/Common/Src/LinearDiskCache.h
Expand Up @@ -9,9 +9,6 @@
#include "Common.h"
#include <fstream>

// defined in Version.cpp
extern const char *scm_rev_git_str;

// On disk format:
//header{
// u32 'DCAC';
Expand Down
3 changes: 3 additions & 0 deletions Source/Core/Common/Src/Version.cpp
Expand Up @@ -43,3 +43,6 @@ const char *netplay_dolphin_ver = SCM_DESC_STR " L" NP_ARCH;
#endif

const char *scm_rev_git_str = SCM_REV_STR;

const char *scm_desc_str = SCM_DESC_STR;
const char *scm_branch_str = SCM_BRANCH_STR;
3 changes: 1 addition & 2 deletions Source/Core/Core/Src/Movie.cpp
Expand Up @@ -23,7 +23,6 @@
#include "HW/DVDInterface.h"
#include "../../Common/Src/NandPaths.h"
#include "polarssl/md5.h"
#include "scmrev.h"
#include "NetPlayProto.h"

// The chunk to allocate movie data in multiples of.
Expand Down Expand Up @@ -1192,7 +1191,7 @@ void GetSettings()
u8 tmp[21];
for (int i = 0; i < 20; ++i)
{
sscanf(&SCM_REV_STR[2 * i], "%02hhx", &tmp[i]);
sscanf(&scm_rev_git_str[2 * i], "%02hhx", &tmp[i]);
revision[i] = tmp[i];
}
}
Expand Down
3 changes: 1 addition & 2 deletions Source/Core/DolphinWX/Src/AboutDolphin.cpp
Expand Up @@ -6,7 +6,6 @@
#include "AboutDolphin.h"
#include "WxUtils.h"
#include "../resources/dolphin_logo.cpp"
#include "scmrev.h"

AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
const wxString &title, const wxPoint &position,
Expand Down Expand Up @@ -49,7 +48,7 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
"The emulator is for educational purposes only\n"
"and should not be used to play games you do\n"
"not legally own."),
SCM_DESC_STR, SCM_BRANCH_STR, SCM_REV_STR, __DATE__, __TIME__);
scm_desc_str, scm_branch_str, scm_rev_git_str, __DATE__, __TIME__);

wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
Message->Wrap(GetSize().GetWidth());
Expand Down

0 comments on commit 2f384c7

Please sign in to comment.