// // GameToolbox::addBackButton from 0x2ec58c to 0x2ec622 (150 bytes) // // 23 xrefs: // > CreatorLayer::init @ 0x3abba0 // > LevelSearchLayer::init @ 0x3aef44 // > LevelInfoLayer::init @ 0x3b4d3c // > EditLevelLayer::init @ 0x3b77da // > LevelBrowserLayer::init @ 0x3bd102 // > GJGarageLayer::init @ 0x407ec0 // > LevelSelectLayer::init @ 0x40a5d0 // > GJDropDownLayer::init @ 0x420eaa // > LeaderboardsLayer::init @ 0x452896 // > SecretLayer::init @ 0x4cb7c2 // > GauntletSelectLayer::init @ 0x4d9a10 // > GauntletLayer::init @ 0x4db334 // > GJShopLayer::init @ 0x4e36ca // > SecretLayer2::init @ 0x4eeaf4 // > SecretLayer3::init @ 0x4efd24 // > SecretLayer4::init @ 0x4f1f42 // > WorldSelectLayer::init @ 0x4fe6ec // > LevelAreaLayer::init @ 0x56c910 // > LevelAreaInnerLayer::init @ 0x56d1c2 // > SecretRewardsLayer::init @ 0x5861aa // > LevelListLayer::init @ 0x5917fc // > SecretLayer5::init @ 0x59f1cc // > SecretLayer6::init @ 0x59f9aa // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GameToolbox::addBackButton(cocos2d::CCLayer *a1, cocos2d::CCMenuItem *a2) { cocos2d::CCSprite *v4; // r4 cocos2d::CCNode *v5; // r8 const cocos2d::CCPoint *v6; // r0 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCPoint v8; // [sp+4h] [bp-20h] BYREF cocos2d::CCPoint v9; // [sp+Ch] [bp-18h] BYREF cocos2d::CCPoint v10; // [sp+14h] [bp-10h] BYREF v4 = cocos2d::CCSprite::createWithSpriteFrameName("controllerBtn_B_001.png"); a1->addChild(a1, v4); v5 = a2->getParent(a2); v6 = a2->getPosition(a2); cocos2d::CCNode::convertToWorldSpace(&v10, v5, v6); cocos2d::CCNode::convertToNodeSpace(&v8, a1, &v10); setPosition = v4->setPosition; cocos2d::CCPoint::CCPoint(&v9, 28.0, 10.0); cocos2d::CCPoint::operator+(&v10, &v8, &v9); setPosition(v4, &v10); ((void (__fastcall *)(cocos2d::CCSprite *, int))v4->setScale)(v4, 1060320051); }
GD Web Decomp Icon

GD Web Decomp

Raw Source