// // LevelInfoLayer::onRate from 0x6d94bc to 0x6d9644 (392 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x6d9730 // > @ 0x927a8 // // 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 LevelInfoLayer::onRate(LevelInfoLayer *a1, cocos2d::CCObject *a2) { FLAlertLayer *v3; // x20 void *v4; // x0 RateLevelLayer *v5; // x0 RateLevelLayer_vtbl *v6; // x2 unsigned int *v7; // x2 int v8; // w1 __int64 v9; // [xsp+40h] [xbp+40h] BYREF if ( !a1->m_isBusy ) { if ( GameManager::sharedState()->m_showedRateDiffDialog ) { v5 = RateLevelLayer::create(a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed); v6 = v5->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v5->m_delegate = &a1->RateLevelDelegate; ((void (*)(void))v6->show)(); } else { GameManager::sharedState()->m_showedRateDiffDialog = 1; sub_D153B8( (int)&v9, "Please rate the difficulty as fairly as possible. \n" "(Demon and Auto levels are manually verified before accepted)"); v3 = FLAlertLayer::create((int)a1 + 440, (__int64)"Rate Difficulty", (__int64)&v9); v4 = (void *)(v9 - 24); if ( (__int64 *)(v9 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v9 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *(_DWORD *)(v9 - 8); *(_DWORD *)(v9 - 8) = v8 - 1; } if ( v8 <= 0 ) operator delete(v4); } v3->setTag(v3, 7); v3->show(v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source