mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-12 20:42:07 +00:00
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:
parent
75be9ce40d
commit
39ae36398f
14 changed files with 21 additions and 51 deletions
|
@ -12,7 +12,6 @@
|
|||
#include <SFML/Network.hpp>
|
||||
|
||||
#include "GCPadStatus.h"
|
||||
#include "svnrev.h"
|
||||
|
||||
//#include <wx/wx.h>
|
||||
|
||||
|
@ -41,20 +40,6 @@ typedef std::vector<Rpt> 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue