// // LevelLeaderboard::getSpriteButton from 0x614d0c to 0x614dfe (242 bytes) // // 3 xrefs: // > LevelLeaderboard::init @ 0x61555e // > LevelLeaderboard::init @ 0x6155d2 // > LevelLeaderboard::init @ 0x6156e4 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:54:54 +0000 // _DWORD *__fastcall LevelLeaderboard::getSpriteButton( int a1, int a2, int a3, int a4, int a5, int a6, const cocos2d::CCPoint *a7, char *a8) { cocos2d::CCString *v10; // r0 const char *CString; // r11 size_t v12; // r0 const char *v13; // r1 cocos2d::CCSprite *v14; // r0 ButtonSprite *v15; // r0 char *v16; // r3 ButtonSprite *v17; // r5 _DWORD *v18; // r5 float v20; // [sp+14h] [bp-28h] _BYTE v23[8]; // [sp+20h] [bp-1Ch] BYREF int v24[2]; // [sp+28h] [bp-14h] BYREF char *v25; // [sp+30h] [bp-Ch] v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"GJ_button_%02d.png", a8); v24[0] = 0; v24[1] = 0; v25 = nullptr; CString = (const char *)cocos2d::CCString::getCString(v10); v12 = strlen(CString); std::string::__init(v24, CString, v12); if ( (*(_BYTE *)a2 & 1) != 0 ) v14 = *(cocos2d::CCSprite **)(a2 + 8); else v14 = (cocos2d::CCSprite *)(a2 + 1); v15 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v14, v13); if ( (v24[0] & 1) != 0 ) v16 = v25; else v16 = (char *)v24 + 1; v17 = ButtonSprite::create(v15, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, 1, v16, nullptr, 0.0, v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, a7); ButtonSprite::updateSpriteOffset(v17, (int)v23); v18 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v17, 0, a1, a3, a4); (*(void (__fastcall **)(_DWORD *, int))(*v18 + 80))(v18, a6); v18[79] = a6; if ( a5 ) (*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)a5 + 228))(a5, v18); std::string::~string((int)v24); return v18; }
GD Web Decomp Icon

GD Web Decomp

Raw Source