|
|
@ -21,7 +21,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include "game_share/ryzom_version.h"
|
|
|
|
#include "game_share/ryzom_version.h"
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_REVISION_H
|
|
|
|
#if defined(RYZOM_COMPATIBILITY_VERSION) && defined(HAVE_REVISION_H)
|
|
|
|
#include "revision.h"
|
|
|
|
#include "revision.h"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +45,16 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
std::string getUserAgent()
|
|
|
|
std::string getUserAgent()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return getUserAgentName() + "/" + getUserAgentVersion();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string getUserAgentName()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "Ryzom";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::string getUserAgentVersion()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
static std::string s_userAgent;
|
|
|
|
static std::string s_userAgent;
|
|
|
|
|
|
|
|
|
|
|
@ -52,8 +62,9 @@ std::string getUserAgent()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char buffer[256];
|
|
|
|
char buffer[256];
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef REVISION
|
|
|
|
#if defined(REVISION) && defined(RYZOM_COMPATIBILITY_VERSION)
|
|
|
|
sprintf(buffer, "%s.%s-%s-%s", RYZOM_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
|
|
// we don't need RYZOM_VERSION if we already have a numeric form a.b.c, we just need to append revision to it
|
|
|
|
|
|
|
|
sprintf(buffer, "%s.%s-%s-%s", RYZOM_COMPATIBILITY_VERSION, REVISION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
sprintf(buffer, "%s-%s-%s", RYZOM_VERSION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
|
|
sprintf(buffer, "%s-%s-%s", RYZOM_VERSION, RYZOM_SYSTEM, RYZOM_ARCH);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|