From 392b0b8f23a6ec32324eb86d5c3b97e5a93e4321 Mon Sep 17 00:00:00 2001 From: lotodore Date: Thu, 1 Nov 2007 10:09:29 +0000 Subject: [PATCH] Enable retrieval of avatar file name through session. --- src/session.cpp | 8 ++++++++ src/session.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/session.cpp b/src/session.cpp index bd2cbc4d..b3dcd029 100755 --- a/src/session.cpp +++ b/src/session.cpp @@ -390,3 +390,11 @@ unsigned Session::getClientCurrentGameId() const return id; } +bool Session::getAvatarFile(const MD5Buf &avatarMD5, std::string &fileName) +{ + bool retVal = false; + if (myAvatarManager.get()) + retVal = myAvatarManager->GetAvatarFileName(avatarMD5, fileName); + return retVal; +} + diff --git a/src/session.h b/src/session.h index 21aa4da9..aba32210 100755 --- a/src/session.h +++ b/src/session.h @@ -24,6 +24,7 @@ #include "game_defs.h" #include #include +#include class GuiInterface; class Game; @@ -84,6 +85,8 @@ public: ServerStats getClientStats() const; unsigned getClientCurrentGameId() const; + bool getAvatarFile(const MD5Buf &avatarMD5, std::string &fileName); + private: int currentGameNum;