// // ShareLevelLayer::selectRating from 0x4a2508 to 0x4a25e8 (224 bytes) // // 1 xrefs: // > ShareLevelLayer::setupStars @ 0x4a37b8 // // 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:49:51 +0000 // int __fastcall ShareLevelLayer::selectRating(ShareLevelLayer *this, cocos2d::CCObject *a2) { unsigned int v3; // r5 cocos2d::CCSpriteFrameCache *CString; // r0 int v5; // r0 int v6; // r6 int v7; // r0 int v8; // r10 char *v9; // r7 const char *v10; // r1 int v11; // r3 cocos2d::CCString *v12; // r0 const char *v13; // r5 int v14; // r4 int (__fastcall *v15)(int, int); // r6 cocos2d::CCSpriteFrameCache *v16; // r0 int v17; // r0 if ( a2 ) *((_DWORD *)this + 131) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); v3 = 0; while ( 1 ) { CString = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 132)); if ( v3 >= (unsigned int)CString ) break; v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 132), v3++); v6 = v5; v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 536))(v5); v8 = *((_DWORD *)this + 131); v9 = (char *)v7; if ( v8 == (*(int (__fastcall **)(int))(*(_DWORD *)v6 + 32))(v6) ) v10 = "GJ_button_01.png"; else v10 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v9, v10); } *(_DWORD *)(*((_DWORD *)this + 130) + 868) = *((_DWORD *)this + 131); v11 = *((_DWORD *)this + 131); if ( v11 <= 1 ) { if ( v11 == 1 ) { v13 = "difficulty_auto_btn_001.png"; goto LABEL_22; } LABEL_19: v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", nullptr); goto LABEL_20; } if ( v11 == 2 ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", (_BYTE *)&dword_0 + 1); goto LABEL_20; } if ( v11 == 3 ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", (_BYTE *)&dword_0 + 2); goto LABEL_20; } if ( v11 <= 5 ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", (_BYTE *)&dword_0 + 3); goto LABEL_20; } if ( v11 <= 7 ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", &byte_4); goto LABEL_20; } if ( v11 <= 9 ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", &byte_5); goto LABEL_20; } if ( v11 != 10 ) goto LABEL_19; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"difficulty_%02d_btn_001.png", &byte_6); LABEL_20: CString = (cocos2d::CCSpriteFrameCache *)cocos2d::CCString::getCString(v12); v13 = (const char *)CString; LABEL_22: v14 = *((_DWORD *)this + 133); v15 = *(int (__fastcall **)(int, int))(*(_DWORD *)v14 + 580); v16 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(CString); v17 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v16, v13); return v15(v14, v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source