// // GJWriteMessagePopup::onSend from 0x5d9ea4 to 0x5da014 (368 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:54:11 +0000 // int __fastcall GJWriteMessagePopup::onSend(GJWriteMessagePopup *this, cocos2d::CCObject *a2) { GameLevelManager *v3; // r0 int v4; // r6 int v5; // r6 int *v6; // r0 int v7; // r6 int v8; // r6 int *v9; // r5 GameLevelManager *v11; // r0 int v12; // r0 const char *v13; // r8 GameLevelManager *v14; // r9 int v15; // r2 int v16; // r3 int v17[3]; // [sp+1Ch] [bp-20h] BYREF int v18; // [sp+28h] [bp-14h] BYREF int v19; // [sp+2Ch] [bp-10h] int v20; // [sp+30h] [bp-Ch] (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 136) + 580))(*((_DWORD *)this + 136), 0); v3 = (GameLevelManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 137) + 580))( *((_DWORD *)this + 137), 0); v4 = *((unsigned __int8 *)this + 564); if ( (v4 & 1) != 0 ) v5 = *((_DWORD *)this + 142); else v5 = v4 >> 1; if ( !v5 ) { v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "You must enter a subject for the message", 0x30u); v6 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"No subject", (int)&v18, (ButtonSprite *)"Ok", nullptr, 380.0, 0, 0, 1.0); LABEL_11: v9 = v6; std::string::~string((int)&v18); return (*(int (__fastcall **)(int *))(*v9 + 656))(v9); } v7 = *((unsigned __int8 *)this + 552); if ( (v7 & 1) != 0 ) v8 = *((_DWORD *)this + 139); else v8 = v7 >> 1; if ( !v8 ) { v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "You can't send an empty message.", 0x28u); v6 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"No message", (int)&v18, (ButtonSprite *)"Ok", nullptr, 380.0, 0, 0, 1.0); goto LABEL_11; } v11 = (GameLevelManager *)GameLevelManager::sharedState(v3); *((_DWORD *)v11 + 227) = (char *)this + 520; v12 = GameLevelManager::sharedState(v11); v13 = *((const char **)this + 134); v14 = (GameLevelManager *)v12; std::string::basic_string(v17, (int)this + 564); std::string::basic_string(&v18, (int)this + 552); GameLevelManager::uploadUserMessage(v14, v13, (int)v17, (int)&v18); std::string::~string((int)&v18); std::string::~string((int)v17); v18 = 0; v19 = 0; v20 = 0; std::string::__init(&v18, "Sending...", 0xAu); *((_DWORD *)this + 146) = UploadActionPopup::create((int)this + 524, (int)&v18, v15, v16); std::string::~string((int)&v18); return (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 146) + 656))(*((_DWORD *)this + 146)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source