// // FLAlertLayer::addCloseButton from 0x69972c to 0x69986c (320 bytes) // // 4 xrefs: // > LevelInfoLayer::onPlay @ 0x7e7bf4 // > EditLevelLayer::onTest @ 0x7ee144 // > EditLevelLayer::onPlay @ 0x7eee2c // > @ 0x78ca0 // // 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 12:50:39 +0000 // __int64 __fastcall FLAlertLayer::addCloseButton(FLAlertLayer *this) { cocos2d::CCDirector *v2; // x0 const char *v3; // x1 __int64 v4; // x19 __int64 v5; // x19 float v6; // s1 cocos2d::CCNode *v7; // x23 float v8; // s0 void (__fastcall *v9)(__int64, __int64 *); // x20 __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, (__int64)FLAlertLayer::onButton, 0); CCMenuItemSpriteExtra::setSizeMult(v5, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v5); v6 = *((float *)this + 163); v7 = *((cocos2d::CCNode **)this + 69); v8 = *((float *)this + 162) * 0.5; v9 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v12, 5.0 - (float)(v8 - (float)(*(float *)&v11 * 0.5)), (float)((float)(v6 * 0.5) + (float)(*((float *)&v11 + 1) * 0.5)) - 5.0); cocos2d::CCNode::convertToNodeSpace(&v13, v7, (const cocos2d::CCPoint *)v12); v9(v5, &v13); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 72LL))(v5, 2); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source