Enable retrieval of avatar file name through session.
This commit is contained in:
@@ -390,3 +390,11 @@ unsigned Session::getClientCurrentGameId() const
|
|||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Session::getAvatarFile(const MD5Buf &avatarMD5, std::string &fileName)
|
||||||
|
{
|
||||||
|
bool retVal = false;
|
||||||
|
if (myAvatarManager.get())
|
||||||
|
retVal = myAvatarManager->GetAvatarFileName(avatarMD5, fileName);
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
#include "game_defs.h"
|
#include "game_defs.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
#include <core/crypthelper.h>
|
||||||
|
|
||||||
class GuiInterface;
|
class GuiInterface;
|
||||||
class Game;
|
class Game;
|
||||||
@@ -84,6 +85,8 @@ public:
|
|||||||
ServerStats getClientStats() const;
|
ServerStats getClientStats() const;
|
||||||
unsigned getClientCurrentGameId() const;
|
unsigned getClientCurrentGameId() const;
|
||||||
|
|
||||||
|
bool getAvatarFile(const MD5Buf &avatarMD5, std::string &fileName);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
int currentGameNum;
|
int currentGameNum;
|
||||||
|
|||||||
Reference in New Issue
Block a user