// // LevelInfoLayer::onRateStars from 0x1000284cc to 0x1000285e0 (276 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x10002ae0c // > LevelInfoLayer::init @ 0x1000251dc // // 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::onRateStars(LevelInfoLayer *a1, cocos2d::CCObject *a2) { GameManager *v3; // x0 GameLevelManager *v4; // x0 GJGameLevel *m_level; // x0 int v6; // w20 bool isPlatformer; // w0 RateStarsLayer *v8; // x0 __int64 v9; // x19 void *__p[2]; // [xsp+8h] [xbp-28h] BYREF char v11; // [xsp+1Fh] [xbp-11h] if ( !a1->m_isBusy ) { v3 = GameManager::sharedState(); if ( v3->m_playerUserID.random == v3->m_playerUserID.seed ) { v4 = GameLevelManager::sharedState(); GameLevelManager::updateUserScore(v4); } if ( GameManager::sharedState()->m_showedRateStarDialog ) { m_level = a1->m_level; v6 = m_level->m_levelID.random - m_level->m_levelID.seed; isPlatformer = GJGameLevel::isPlatformer(m_level); v8 = RateStarsLayer::create(v6, isPlatformer, 0); v8->m_delegate = &a1->RateLevelDelegate; ((void (__fastcall *)(RateStarsLayer *))v8->show)(v8); } else { GameManager::sharedState()->m_showedRateStarDialog = 1; sub_100009900( __p, "Auto: 1 Star or Moon\n" "Easy: 2 Stars or Moons\n" "Normal: 3 Stars or Moons\n" "Hard: 4 to 5 Stars or Moons\n" "Harder: 6 to 7 Stars or Moons\n" "Insane: 8 to 9 Stars or Moons\n" "Demon: 10 Stars or Moons\n" "(These values are not assigned before a rating is manually given by RobTop.)"); v9 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Rating guide", __p, "OK", 0, 300.0); if ( v11 < 0 ) operator delete(__p[0]); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 8); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1288LL))(v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source