// // RateStarsLayer::selectRating from 0x8243a8 to 0x82454c (420 bytes) // // 4 xrefs: // > RateStarsLayer::init @ 0x824fb0 // > @ 0x77ca0 // > RateStarsLayer::init @ 0x824ce4 // > @ 0x122bff0 // // 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 RateStarsLayer::selectRating(RateStarsLayer *a1, cocos2d::CCObject *a2) { unsigned int i; // w19 __int64 v4; // x20 __int64 v5; // x22 __int64 v6; // x1 __int64 v7; // x0 const char *v8; // x1 ButtonSprite *v9; // x0 __int64 (*getNormalImage)(void); // x1 ButtonSprite *v11; // x0 int m_starsRate; // w0 bool v13; // zf int v14; // w1 GJDifficultySprite *m_difficultySprite; // x0 ButtonSprite *v16; // x0 if ( a2 ) a1->m_starsRate = a2->getTag(a2); else a1->m_starsRate = -1; for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_buttons); ++i ) { v4 = cocos2d::CCArray::objectAtIndex(a1->m_buttons, i); v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1056LL))(v4); v6 = *(_QWORD *)v4; v7 = v4; LODWORD(v4) = a1->m_starsRate; v13 = (_DWORD)v4 == (*(unsigned int (__fastcall **)(__int64))(v6 + 64))(v7); v8 = "GJ_button_04.png"; v9 = (ButtonSprite *)v5; if ( v13 ) { v9 = (ButtonSprite *)v5; v8 = "GJ_button_01.png"; } ButtonSprite::updateBGImage(v9, v8); } getNormalImage = (__int64 (*)(void))a1->m_submitButton->getNormalImage; if ( a1->m_starsRate == -1 ) { v16 = (ButtonSprite *)getNormalImage(); ButtonSprite::setColor(v16, (cocos2d::ccColor3B)-5855578); } else { v11 = (ButtonSprite *)getNormalImage(); ButtonSprite::setColor(v11, (cocos2d::ccColor3B)&unk_FFFFFF); } m_starsRate = a1->m_starsRate; v13 = m_starsRate == 1; if ( m_starsRate <= 1 ) { m_difficultySprite = a1->m_difficultySprite; if ( v13 ) v14 = -1; else v14 = 0; } else if ( m_starsRate == 2 ) { v14 = 1; m_difficultySprite = a1->m_difficultySprite; } else if ( m_starsRate == 3 ) { v14 = 2; m_difficultySprite = a1->m_difficultySprite; } else { v14 = 3; if ( m_starsRate > 5 && (v14 = 4, m_starsRate > 7) && (v14 = 5, m_starsRate > 9) ) { if ( m_starsRate == 10 ) v14 = 6; else v14 = 0; m_difficultySprite = a1->m_difficultySprite; } else { m_difficultySprite = a1->m_difficultySprite; } } GJDifficultySprite::updateDifficultyFrame(m_difficultySprite, v14, Short); }
GD Web Decomp Icon

GD Web Decomp

Raw Source