// // FLAlertLayer::addCloseButton from 0x3cb518 to 0x3cb5ee (214 bytes) // // 3 xrefs: // > LevelInfoLayer::onPlay @ 0x49b664 // > EditLevelLayer::onTest @ 0x49f8c0 // > EditLevelLayer::onPlay @ 0x4a03f8 // // 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:46:37 +0000 // int __fastcall FLAlertLayer::addCloseButton(const cocos2d::CCPoint **this) { const char *v2; // r1 int v3; // r4 int v4; // r4 const cocos2d::CCPoint *v5; // r9 void (__fastcall *v6)(int, _DWORD *); // r8 float v8[2]; // [sp+Ch] [bp-10h] BYREF _BYTE v9[8]; // [sp+14h] [bp-8h] BYREF _DWORD v10[4]; // [sp+1Ch] [bp+0h] BYREF cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v8); v3 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v2); (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 80))(v3, 1060320051); v10[2] = FLAlertLayer::onButton; v10[3] = 0; v4 = CCMenuItemSpriteExtra::create(v3, 0, (int)this, (int)FLAlertLayer::onButton, 0); CCMenuItemSpriteExtra::setSizeMult(v4, 1.2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v4); v5 = *(this + 111); v6 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v9, (float)((float)(v8[0] * 0.5) - (float)(*((float *)this + 127) * 0.5)) + 5.0, (float)((float)(*((float *)this + 128) * 0.5) + (float)(v8[1] * 0.5)) - 5.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v10, v5); v6(v4, v10); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 36))(v4, 2); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source