1 #include "updatehelper.h"
2 
3 #ifdef HAVE_CONFIG_H
4 	#include "springlobby_config.h"
5 #else
6         #define VERSION "unknown"
7 #endif
8 
9 #include "../utils/conversion.h"
10 
GetDownloadUrl(const wxString & version)11 wxString GetDownloadUrl( const wxString& version )
12 {
13     return _T("springlobby.info/windows/springlobby-") + version + _T("-win32.zip");
14 }
15 
GetSpringLobbyVersion(bool consider_aux)16 wxString GetSpringLobbyVersion( bool consider_aux )
17 {
18 	if ( consider_aux )
19 	{
20 		return (TowxString(VERSION)).BeforeFirst( _T(' ') ) + _T(" ") + GetSpringLobbyAuxVersion();
21 	}
22 	else
23 	{
24 		return (TowxString(VERSION)).BeforeFirst( _T(' ') );
25 	}
26 
27 }
28 
GetSpringLobbyAuxVersion()29 wxString GetSpringLobbyAuxVersion()
30 {
31 #ifndef AUX_VERSION
32 	return wxEmptyString;
33 #else
34 	return TowxString(AUX_VERSION);
35 #endif
36 }
37