// // LevelLeaderboard::getSpriteButton from 0xa8249c to 0xa82630 (404 bytes) // // 4 xrefs: // > LevelLeaderboard::init @ 0xa82eec // > LevelLeaderboard::init @ 0xa82f8c // > LevelLeaderboard::init @ 0xa8380c // > @ 0x9f790 // // 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:00:32 +0000 // float *__fastcall LevelLeaderboard::getSpriteButton( __int64 a1, unsigned __int8 *a2, __int64 a3, __int64 a4, __int64 a5, const cocos2d::CCPoint *a6, char *a7, float a8) { cocos2d::CCString *v15; // x0 size_t v16; // x0 cocos2d::CCSprite *v17; // x0 const char *v18; // x1 ButtonSprite *v19; // x0 cocos2d::CCSprite *v20; // x4 ButtonSprite *v21; // x19 float *v22; // x19 char *CString; // [xsp+68h] [xbp+68h] _BYTE v25[8]; // [xsp+78h] [xbp+78h] BYREF __int64 v26[2]; // [xsp+80h] [xbp+80h] BYREF void *v27; // [xsp+90h] [xbp+90h] v15 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"GJ_button_%02d.png", (const char *)(unsigned int)a7); v26[0] = 0; CString = (char *)cocos2d::CCString::getCString(v15); v26[1] = 0; v27 = nullptr; v16 = strlen(CString); std::string::__init(v26, CString, v16); v17 = (cocos2d::CCSprite *)(a2 + 1); v18 = (const char *)*a2; if ( ((unsigned __int8)v18 & 1) != 0 ) v17 = *((cocos2d::CCSprite **)a2 + 2); v19 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v17, v18); v20 = (cocos2d::CCSprite *)((char *)v26 + 1); if ( (v26[0] & 1) != 0 ) v20 = (cocos2d::CCSprite *)v27; v21 = (ButtonSprite *)ButtonSprite::create(v19, (cocos2d::CCSprite *)&qword_20, 0, 1, 32.0, 1.0, v20, nullptr, 0.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, a6); ButtonSprite::updateSpriteOffset(v21, (__int64)v25); v22 = (float *)CCMenuItemSpriteExtra::create((__int64)v21, 0, a1, a3, a4); (*(void (__fastcall **)(float *, float))(*(_QWORD *)v22 + 160LL))(v22, a8); v22[101] = a8; if ( a5 ) (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a5 + 456LL))(a5, v22); if ( (v26[0] & 1) != 0 ) operator delete(v27); return v22; }
GD Web Decomp Icon

GD Web Decomp

Raw Source