Decompile fn_19659 (CreateEntryQueueMgr)

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

- fn_19659 CreateEntryQueueMgr: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, superintelligence
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-10-30 22:21:43 +00:00
commit 4ee49bf940
2 changed files with 22 additions and 1 deletions

View file

@ -7,7 +7,7 @@
#include "UI/EntryQueue/UIEntryQueueWnd.h"
#include "UI/Window/UIWindowMgr.h"
#include "UI/Window/WindowDialogs.h"
#include "Script/LuaScript.h"
#include <cstring>
#include <string>
@ -279,3 +279,22 @@ void CEntryQueueMgr::OnNotify(const EntryQueueNotice* notice) {
g_soundMgr->PlayWave("se_btg_forward.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
}
}
// INLINED
CEntryQueueMgr::CEntryQueueMgr() : current(nullptr), ready(0) {
std::memset(&this->queueName, 0, sizeof(this->queueName) + sizeof(this->characterName));
g_luaScript->Call("ReadEntryQueueList", "");
}
// OFFSET: 0x00BA1DF0
// FUNCTION: fn_19659
bool CreateEntryQueueMgr() {
if (!g_entryQueueMgr) {
g_entryQueueMgr = new (std::nothrow) CEntryQueueMgr();
if (g_entryQueueMgr) {
return true;
}
}
return false;
}