Pass ConfigFile to ClientThread constructor.
This commit is contained in:
@@ -41,12 +41,13 @@ class NetPacket;
|
||||
class AvatarManager;
|
||||
class Log;
|
||||
class QtToolsInterface;
|
||||
class ConfigFile;
|
||||
struct Gsasl;
|
||||
|
||||
class ClientThread : public Thread, public boost::enable_shared_from_this<ClientThread>, public SessionDataCallback
|
||||
{
|
||||
public:
|
||||
ClientThread(GuiInterface &gui, AvatarManager &avatarManager);
|
||||
ClientThread(GuiInterface &gui, AvatarManager &avatarManager, ConfigFile *config);
|
||||
virtual ~ClientThread();
|
||||
|
||||
// Set the parameters. Does not do any error checking.
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
using namespace std;
|
||||
using boost::asio::ip::tcp;
|
||||
|
||||
ClientThread::ClientThread(GuiInterface &gui, AvatarManager &avatarManager)
|
||||
ClientThread::ClientThread(GuiInterface &gui, AvatarManager &avatarManager, ConfigFile *config)
|
||||
: m_ioService(new boost::asio::io_service), m_curState(NULL), m_gui(gui),
|
||||
m_avatarManager(avatarManager), m_isServerSelected(false),
|
||||
m_curGameId(0), m_curGameNum(1), m_guiPlayerId(0), m_sessionEstablished(false),
|
||||
|
||||
Reference in New Issue
Block a user