// // GJWriteMessagePopup::onSend from 0x4ac794 to 0x4ac8ec (344 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJWriteMessagePopup::onSend(GJWriteMessagePopup *a1, cocos2d::CCObject *a2) { FLAlertLayer *v3; // r0 FLAlertLayer *v4; // r5 GameLevelManager *v5; // r0 const char *m_messageID; // r7 GameLevelManager *v7; // r9 int v8; // [sp+1Ch] [bp-10h] BYREF std::string v9; // [sp+20h] [bp-Ch] BYREF a1->m_messageInput->onClickTrackNode(a1->m_messageInput, 0); a1->m_subjectInput->onClickTrackNode(a1->m_subjectInput, 0); if ( !*((_DWORD *)a1->m_subjectText.m_data.m_data - 3) ) { sub_776584((int)&v9, "You must enter a subject for the message"); v3 = FLAlertLayer::create(0, (int)"No subject", (int)&v9, (int)"Ok", 0, 380.0, 0, 0, 1.0); LABEL_5: v4 = v3; sub_774008(&v9); v4->show(v4); return; } if ( !*((_DWORD *)a1->m_messageText.m_data.m_data - 3) ) { sub_776584((int)&v9, "You can't send an empty message."); v3 = FLAlertLayer::create(0, (int)"No message", (int)&v9, (int)"Ok", 0, 380.0, 0, 0, 1.0); goto LABEL_5; } GameLevelManager::sharedState()->m_uploadMessageDelegate = &a1->UploadMessageDelegate; v5 = GameLevelManager::sharedState(); m_messageID = (const char *)a1->m_messageID; v7 = v5; sub_775C20(&v8); sub_775C20(&v9); GameLevelManager::uploadUserMessage(v7, m_messageID, &v8, &v9); sub_774008(&v9); sub_774008(&v8); sub_776584((int)&v9, "Sending..."); a1->m_uploadPopup = (UploadActionPopup *)UploadActionPopup::create((char *)&a1->UploadPopupDelegate, (char *)&v9); sub_774008(&v9); a1->m_uploadPopup->show(a1->m_uploadPopup); }
GD Web Decomp Icon

GD Web Decomp

Raw Source