Core: Added 4.3.4 opcodes from WPP, commented out some code to fix compile (switches with opcodes - duplicate case 0: labels) and fixed authentication

This commit is contained in:
Shauren
2012-07-04 18:24:05 +02:00
parent a6a556ce09
commit c95905ddbb
14 changed files with 2610 additions and 2574 deletions

View File

@@ -564,11 +564,21 @@ class ByteBuffer
std::string ReadString()
{
std::string s = 0;
std::string s;
(*this) >> s;
return s;
}
std::string ReadString(uint32 length)
{
char* buffer = new char[length + 1];
memset(buffer, 0, length + 1);
read((uint8*)buffer, length);
std::string retval = buffer;
delete[] buffer;
return retval;
}
bool ReadBoolean()
{
uint8 b = 0;