// // TabbedPopupLayer::addCloseButton from 0x72d94c to 0x72da14 (200 bytes) // // 3 xrefs: // > KeybindingsLayer::init @ 0x58a8ac // > GameSettingsLayer::init @ 0x712f0c // > EditorSoundsLayer::init @ 0x78ac16 // // 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:58:17 +0000 // int __fastcall TabbedPopupLayer::addCloseButton(const cocos2d::CCPoint **this) { const char *v2; // r1 int v3; // r6 int v4; // r6 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] = 684; v10[3] = 1; v4 = CCMenuItemSpriteExtra::create(v3, 0, (int)this, 684, 1); 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)(v8[0] * 0.5) - (float)(*((float *)this + 139) * 0.5), (float)(*((float *)this + 140) * 0.5) + (float)(v8[1] * 0.5)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v10, v5); v6(v4, v10); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source