// // RateLevelLayer::selectRating from 0x100568360 to 0x100568440 (224 bytes) // // 2 xrefs: // > RateLevelLayer::init @ 0x10056833d // > RateLevelLayer::init @ 0x100567e7f // // 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 RateLevelLayer::selectRating(RateLevelLayer *a1, cocos2d::CCObject *a2) { int v3; // eax unsigned int v4; // r14d __int64 v5; // rcx _QWORD *v6; // rdi _WORD *v7; // rsi _QWORD *v8; // rax _BOOL8 v9; // r14 ButtonSprite *v10; // rax _WORD v11[18]; // [rsp+Ch] [rbp-24h] BYREF if ( a2 ) v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); else v3 = -1; a1->m_levelRate = v3; if ( (unsigned int)sub_100720070(a1->m_difficulties) ) { v4 = 0; do { v8 = (_QWORD *)sub_1007200C0(a1->m_difficulties, v4); if ( v4 == a1->m_levelRate ) { v5 = *v8; v6 = v8; v7 = &unk_10081E7B4; } else { memset(v11, 125, 3); v5 = *v8; v6 = v8; v7 = v11; } (*(void (__fastcall **)(_QWORD *, _WORD *))(v5 + 944))(v6, v7); ++v4; } while ( v4 < (unsigned int)sub_100720070(a1->m_difficulties) ); } v9 = a1->m_levelRate != -1; v10 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_submitButton->getNormalImage)(a1->m_submitButton); ButtonSprite::setColor(v10, (cocos2d::ccColor3B)(v9 ? -1 : 0xFFA6A6A6)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source