// // RateStarsLayer::selectRating from 0x100080820 to 0x100080984 (356 bytes) // // 2 xrefs: // > RateStarsLayer::init @ 0x1000806c4 // > RateStarsLayer::init @ 0x1000803c0 // // 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 __fastcall RateStarsLayer::selectRating(RateStarsLayer *a1, cocos2d::CCObject *a2) { int v3; // w0 __int64 v4; // x20 __int64 v5; // x21 ButtonSprite *v6; // x22 int m_starsRate; // w25 const char *v8; // x1 int v9; // w20 ButtonSprite *v10; // x0 int v11; // w1 unsigned int v12; // w8 int v13; // w9 int v14; // w12 int v15; // w11 int v16; // w10 int v17; // w1 if ( a2 ) v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); else v3 = -1; a1->m_starsRate = v3; if ( (unsigned int)sub_10024A36C(a1->m_buttons) ) { v4 = 0; do { v5 = sub_10024A388(a1->m_buttons, v4); v6 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1056LL))(v5); m_starsRate = a1->m_starsRate; if ( m_starsRate == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) ) v8 = "GJ_button_01.png"; else v8 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, v8); v4 = (unsigned int)(v4 + 1); } while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_buttons) ); } v9 = a1->m_starsRate; v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_submitButton->getNormalImage)(a1->m_submitButton); if ( v9 == -1 ) v11 = 10921638; else v11 = 0xFFFFFF; ButtonSprite::setColor(v10, (cocos2d::ccColor3B)v11); v12 = a1->m_starsRate; if ( (int)v12 >= 2 ) { if ( v12 == 2 ) { v13 = 1; } else if ( v12 == 3 ) { v13 = 2; } else { if ( v12 == 10 ) v14 = 6; else v14 = 0; if ( v12 >= 0xA ) v15 = v14; else v15 = 5; if ( v12 >= 8 ) v16 = v15; else v16 = 4; if ( v12 >= 6 ) v13 = v16; else v13 = 3; } } else { v13 = 0; } if ( v12 == 1 ) v17 = -1; else v17 = v13; GJDifficultySprite::updateDifficultyFrame(a1->m_difficultySprite, v17, Short); }
GD Web Decomp Icon

GD Web Decomp

Raw Source