// // LevelLeaderboard::getSpriteButton from 0x1002501a8 to 0x1002502d8 (304 bytes) // // 3 xrefs: // > LevelLeaderboard::init @ 0x10024f78c // > LevelLeaderboard::init @ 0x10024f820 // > LevelLeaderboard::init @ 0x10024f984 // // 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 // CCMenuItemSpriteExtra *__fastcall LevelLeaderboard::getSpriteButton( cocos2d::CCObject *a1, const char *a2, void (__cdecl *a3)(cocos2d::CCObject *), size_t a4, __int64 a5, __int64 *a6, int a7, float a8) { cocos2d::CCString *v15; // x0 char *CString; // x0 cocos2d::CCSprite *v17; // x0 void **v18; // x4 ButtonSprite *v19; // x24 CCMenuItemSpriteExtra *v20; // x20 __int64 v22; // [xsp+10h] [xbp-60h] BYREF void *__p[2]; // [xsp+18h] [xbp-58h] BYREF char v24; // [xsp+2Fh] [xbp-41h] cocos2d::SEL_MenuHandler v25; // 0:x3.16 cocos2d::CCPoint v26; // 0:s0.4,4:s1.4 v15 = (cocos2d::CCString *)sub_100268F4C("GJ_button_%02d.png", a7); CString = (char *)cocos2d::CCString::getCString(v15); sub_100009900(__p, CString); if ( a2[23] < 0 ) a2 = *(const char **)a2; v17 = cocos2d::CCSprite::createWithSpriteFrameName(a2); if ( v24 >= 0 ) v18 = __p; else v18 = (void **)__p[0]; v19 = ButtonSprite::create(v17, 32, 0, 32.0, 1.0, 1, (const char *)v18, 0); v26.x = sub_1000229B8(&v22, a6); ButtonSprite::updateSpriteOffset(v19, v26); v25.ptr = a3; v25.adj = a4; v20 = CCMenuItemSpriteExtra::create(v19, nullptr, a1, v25); ((void (__fastcall *)(CCMenuItemSpriteExtra *, float))v20->setScale)(v20, a8); v20->m_baseScale = a8; if ( a5 ) (*(void (__fastcall **)(__int64, CCMenuItemSpriteExtra *))(*(_QWORD *)a5 + 440LL))(a5, v20); if ( v24 < 0 ) operator delete(__p[0]); return v20; }
GD Web Decomp Icon

GD Web Decomp

Raw Source