mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06: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:
@ -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;
|
||||
|
Reference in New Issue
Block a user