// // TabbedPopupLayer::addCloseButton from 0xc38000 to 0xc3811c (284 bytes) // // 4 xrefs: // > KeybindingsLayer::init @ 0x997558 // > GameSettingsLayer::init @ 0xc0826c // > EditorSoundsLayer::init @ 0xcd6ca8 // > @ 0x50188 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:04:52 +0000 // __int64 __fastcall TabbedPopupLayer::addCloseButton(TabbedPopupLayer *this) { cocos2d::CCDirector *v2; // x0 const char *v3; // x1 __int64 v4; // x21 __int64 v5; // x21 float v6; // s1 cocos2d::CCNode *v7; // x23 float v8; // s0 void (__fastcall *v9)(__int64, __int64 *); // x19 __int64 v11; // [xsp+50h] [xbp+50h] BYREF _BYTE v12[8]; // [xsp+58h] [xbp+58h] BYREF __int64 v13; // [xsp+60h] [xbp+60h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v11, v2); v4 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v3); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, 0.7); v5 = CCMenuItemSpriteExtra::create(v4, 0, (__int64)this, 1368, 1); CCMenuItemSpriteExtra::setSizeMult(v5, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v5); v6 = *((float *)this + 184); v7 = *((cocos2d::CCNode **)this + 69); v8 = *((float *)this + 183) * 0.5; v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v12, -(float)(v8 - (float)(*(float *)&v11 * 0.5)), (float)(v6 * 0.5) + (float)(*((float *)&v11 + 1) * 0.5)); cocos2d::CCNode::convertToNodeSpace(&v13, v7, (const cocos2d::CCPoint *)v12); v9(v5, &v13); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source