// // GJDifficultySprite::updateDifficultyFrame from 0x5e02e8 to 0x5e03bc (212 bytes) // // 4 xrefs: // > LevelInfoLayer::updateLabelValues @ 0x49c00c // > GJRateLevelLayer::selectRating @ 0x564be0 // > RateStarsLayer::selectRating @ 0x569278 // > RateStarsModLayer::updateDSprite @ 0x79e5a8 // // 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:15 +0000 // unsigned int __fastcall GJDifficultySprite::updateDifficultyFrame(cocos2d::CCArray **a1, const char *a2, int a3) { void (__fastcall *v6)(cocos2d::CCArray **, int); // r7 cocos2d::CCSpriteFrameCache *v7; // r8 const char *v8; // r1 int v9; // r0 unsigned int result; // r0 unsigned int v11; // r5 float v12; // s16 int v13; // r0 int v14; // r0 _BYTE v15[8]; // [sp+0h] [bp-18h] BYREF int v16[3]; // [sp+8h] [bp-10h] BYREF v6 = *((void (__fastcall **)(cocos2d::CCArray **, int))*a1 + 145); v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache((cocos2d::CCSpriteFrameCache *)a1); GJDifficultySprite::getDifficultyFrame(v16, a2, a3); if ( (v16[0] & 1) != 0 ) v8 = (const char *)v16[2]; else v8 = (char *)v16 + 1; v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v8); v6(a1, v9); result = std::string::~string((int)v16); if ( a1[48] ) { v11 = 0; v12 = *(float *)(*((int (__fastcall **)(cocos2d::CCArray **))*a1 + 41))(a1); v13 = (*((int (__fastcall **)(cocos2d::CCArray **))*a1 + 41))(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, v12 * 0.5, *(float *)(v13 + 4) * 0.5); while ( 1 ) { result = cocos2d::CCArray::count(a1[48]); if ( v11 >= result ) break; v14 = cocos2d::CCArray::objectAtIndex(a1[48], v11++); (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v14 + 92))(v14, v15); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source