mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Fixed 9.6 otb loading
This commit is contained in:
@@ -163,6 +163,17 @@ std::string BinaryTree::getString()
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::string BinaryTree::getString(uint16 len)
|
||||
{
|
||||
unserialize();
|
||||
if(m_pos+len > m_buffer.size())
|
||||
stdext::throw_exception("BinaryTree: getString failed: string length exceeded buffer size.");
|
||||
|
||||
std::string ret((char *)&m_buffer[m_pos], len);
|
||||
m_pos += len;
|
||||
return ret;
|
||||
}
|
||||
|
||||
Position BinaryTree::getPosition()
|
||||
{
|
||||
Position ret;
|
||||
|
@@ -49,6 +49,7 @@ public:
|
||||
uint32 getU32();
|
||||
uint64 getU64();
|
||||
std::string getString();
|
||||
std::string getString(uint16 len);
|
||||
Position getPosition();
|
||||
Point getPoint();
|
||||
|
||||
|
Reference in New Issue
Block a user