Decompile fn_20389 (CConnection::Connect)

Batch #17032 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_20389 CConnection::Connect: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-11 13:40:31 +00:00
commit 803f92d03c

View file

@ -66,14 +66,7 @@ namespace {
// OFFSET: 0x00C7C4D0
// FUNCTION: fn_20389
bool CConnection::Connect(const ConnectionEndpoint& endpoint) {
this->m_deferred = 0;
while (this->m_pending.GetSize() != 0) {
const int bytes = this->m_pending.GetSize();
this->m_output.InsertData(bytes, this->m_pending.Data());
this->m_pending.RemoveData(bytes);
this->Flush();
}
this->SetBlock(0);
this->m_input.Init(0xA000);
this->m_output.Init(0xA000);