// // SetupTriggerPopup::addCloseButton from 0x1001a9ad4 to 0x1001a9bc8 (244 bytes) // // 3 xrefs: // > KeybindingsLayer::init @ 0x100023714 // > GameSettingsLayer::init @ 0x100164414 // > EditorSoundsLayer::init @ 0x1004d7144 // // 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 11:00:05 +0000 // __int64 __fastcall SetupTriggerPopup::addCloseButton(__int64 a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x20 __n128 v5; // q0 __int64 v6; // x21 __n128 v7; // q0 float v9; // [xsp+8h] [xbp-38h] BYREF __int64 v10; // [xsp+10h] [xbp-30h] BYREF __int64 v11; // [xsp+18h] [xbp-28h] BYREF v2 = cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(&v11, v2); v3 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, 0.7); v4 = CCMenuItemSpriteExtra::create(v3, 0, a1, 1368, 1); v5 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v4, v5); v6 = *(_QWORD *)(a1 + 552); sub_1000262BC( &v9, (float)(*(float *)&v11 * 0.5) - (float)(*(float *)(a1 + 732) * 0.5), (float)(*((float *)&v11 + 1) * 0.5) + (float)(*(float *)(a1 + 736) * 0.5)); cocos2d::CCNode::convertToNodeSpace(&v10, v6, &v9, v7); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 184LL))(v4, &v10); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source