// // LevelInfoLayer::onRate from 0x1002c49e0 to 0x1002c4aed (269 bytes) // // 1 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4ce1 // // 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 LevelInfoLayer::onRate(LevelInfoLayer *a1, cocos2d::CCObject *a2) { RateLevelLayer *v2; // rax __int64 v3; // rbx _QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF void *__p; // [rsp+18h] [rbp-18h] if ( !a1->m_isBusy ) { if ( GameManager::sharedState()->m_showedRateDiffDialog ) { v2 = RateLevelLayer::create(a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed); v2->m_delegate = &a1->RateLevelDelegate; ((void (__fastcall *)(RateLevelLayer *, cocos2d::CCObject *))v2->show)(v2, a2); } else { GameManager::sharedState()->m_showedRateDiffDialog = 1; __p = operator new(0x90u); v4[0] = 145; v4[1] = 136; strcpy( (char *)__p, "Please rate the difficulty as fairly as possible. \n" "(Demon and Auto levels are manually verified before accepted)"); v3 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Rate Difficulty", v4, "OK", 0, 300.0); if ( (v4[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 72LL))(v3, 7); (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1288LL))(v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source