misc stuff
This commit is contained in:
parent
ffc3096a0d
commit
01761191e1
@ -50,6 +50,7 @@ PseuInstance::PseuInstance(PseuInstanceRunnable *run)
|
||||
_fastquit=false;
|
||||
_startrealm=true;
|
||||
createWorldSession=false;
|
||||
_error=false;
|
||||
|
||||
|
||||
}
|
||||
@ -180,6 +181,14 @@ void PseuInstance::Run(void)
|
||||
|
||||
SaveAllCache();
|
||||
|
||||
if(GetConf()->exitonerror == false && _error)
|
||||
{
|
||||
log("Exiting on error is disabled, PseuWoW is now IDLE");
|
||||
log("-- Press enter to exit --");
|
||||
char crap[100];
|
||||
fgets(crap,sizeof(crap),stdin);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void PseuInstance::Update()
|
||||
|
||||
@ -91,6 +91,7 @@ class PseuInstance
|
||||
bool _initialized;
|
||||
bool _stop,_fastquit;
|
||||
bool _startrealm;
|
||||
bool _error;
|
||||
BigNumber _sessionkey;
|
||||
char *_ver,*_ver_short;
|
||||
SocketHandler _sh;
|
||||
|
||||
@ -107,8 +107,9 @@ void RealmSocket::Start(void)
|
||||
{
|
||||
if(_rhost.empty() || _rport==0 || _instance==NULL)
|
||||
return;
|
||||
log("Connecting to Realm Server on '%s:%u'",_rhost.c_str(),_rport);
|
||||
Open(_rhost,_rport);
|
||||
|
||||
bool result=Open(_rhost,_rport);
|
||||
//...
|
||||
_valid=true;
|
||||
}
|
||||
|
||||
@ -27,6 +27,11 @@ void WorldSocket::OnDelete()
|
||||
_session->SetSocket(NULL);
|
||||
}
|
||||
|
||||
void WorldSocket::OnException()
|
||||
{
|
||||
this->SetCloseAndDelete();
|
||||
}
|
||||
|
||||
void WorldSocket::OnRead()
|
||||
{
|
||||
TcpSocket::OnRead();
|
||||
|
||||
@ -29,6 +29,7 @@ public:
|
||||
void OnConnect();
|
||||
void OnConnectFailed();
|
||||
void OnDelete();
|
||||
void OnException();
|
||||
|
||||
void SendWorldPacket(WorldPacket &pkt);
|
||||
void InitCrypt(uint8*,uint32);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user