// // GJDifficultySprite::updateDifficultyFrame from 0x4b3c84 to 0x4b3d4a (198 bytes) // // 3 xrefs: // > LevelInfoLayer::updateLabelValues @ 0x3b2f68 // > GJRateLevelLayer::selectRating @ 0x4532ec // > RateStarsLayer::selectRating @ 0x455820 // // 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 // void GJDifficultySprite::updateDifficultyFrame(GJDifficultySprite *a1, int a2, GJDifficultyName a3) { void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5 cocos2d::CCSpriteFrameCache *v7; // r8 cocos2d::CCSpriteFrame *v8; // r0 unsigned int v9; // r5 float width; // s16 const cocos2d::CCSize *v11; // r0 int v12; // r0 cocos2d::CCPoint v13; // [sp+4h] [bp+0h] BYREF setDisplayFrame = a1->setDisplayFrame; v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); GJDifficultySprite::getDifficultyFrame((int)&v13, (const char *)a2, a3); v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, (const char *)LODWORD(v13.x)); setDisplayFrame(a1, v8); sub_774008(&v13); if ( a1->m_pChildren ) { v9 = 0; width = a1->getContentSize(a1)->width; v11 = a1->getContentSize(a1); cocos2d::CCPoint::CCPoint(&v13, width * 0.5, v11->height * 0.5); while ( v9 < cocos2d::CCArray::count(a1->m_pChildren) ) { v12 = cocos2d::CCArray::objectAtIndex(a1->m_pChildren, v9++); (*(void (__fastcall **)(int, cocos2d::CCPoint *))(*(_DWORD *)v12 + 92))(v12, &v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source