Decompile fn_22064 (CGameMode::ReceiveCaptchaPreview)
Batch #12010 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_22064 CGameMode::ReceiveCaptchaPreview: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
cfea5b10f4
commit
9fa19609a0
1 changed files with 6 additions and 2 deletions
|
|
@ -1962,7 +1962,8 @@ void CGameMode::ReceiveRodexOpen(const unsigned char* packet) {
|
|||
// OFFSET: 0x00D6ADA0
|
||||
// FUNCTION: fn_22064
|
||||
void CGameMode::ReceiveCaptchaPreview(int result, unsigned short size, const char* key) {
|
||||
if (result == 0) {
|
||||
switch (result) {
|
||||
case 0: {
|
||||
UICaptchaPreviewWnd* window = static_cast<UICaptchaPreviewWnd*>(g_windowMgr.LookupWindow(288));
|
||||
if (!window) {
|
||||
window = static_cast<UICaptchaPreviewWnd*>(g_windowMgr.EnsureWindow(288));
|
||||
|
|
@ -1977,8 +1978,11 @@ void CGameMode::ReceiveCaptchaPreview(int result, unsigned short size, const cha
|
|||
window->Show(0);
|
||||
memcpy_s(window->m_captchaKey, 4, key, 4);
|
||||
window->InitImageData(size);
|
||||
} else if (result == 1) {
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
g_windowMgr.SendNotice(1, reinterpret_cast<std::intptr_t>("wrong captcha ID."), 0xFF, 0, 0, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue