// // LevelInfoLayer::onRateStars from 0x7e6fa4 to 0x7e7110 (364 bytes) // // 4 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x7e84c8 // > @ 0xcf2f8 // > LevelInfoLayer::init @ 0x7ecac0 // > @ 0x15461b8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:29 +0000 // __int64 __fastcall LevelInfoLayer::onRateStars(LevelInfoLayer *this, cocos2d::CCObject *a2) { GameManager *v3; // x0 __int64 v5; // x0 int v6; // w1 GameLevelManager *updated; // x0 GameManager *v8; // x0 __int64 v9; // x20 GJGameLevel *v10; // x0 unsigned int v11; // w21 int isPlatformer; // w0 bool v13; // w3 __int64 *v14; // x0 __int64 v15; // x2 GameLevelManager *v16; // x0 __int64 v17[2]; // [xsp+30h] [xbp+30h] BYREF void *v18; // [xsp+40h] [xbp+40h] v3 = (GameManager *)*((unsigned __int8 *)this + 488); if ( !(_DWORD)v3 ) { v5 = GameManager::sharedState(v3); v6 = *(_DWORD *)(v5 + 660); updated = (GameLevelManager *)*(unsigned int *)(v5 + 664); if ( v6 == (_DWORD)updated ) { v16 = (GameLevelManager *)GameLevelManager::sharedState(updated); updated = (GameLevelManager *)GameLevelManager::updateUserScore(v16); } v8 = (GameManager *)*(unsigned __int8 *)(GameManager::sharedState(updated) + 933); if ( (_DWORD)v8 ) { v10 = *((GJGameLevel **)this + 63); v11 = *((_DWORD *)v10 + 82) - *((_DWORD *)v10 + 83); isPlatformer = GJGameLevel::isPlatformer(v10); v14 = (__int64 *)RateStarsLayer::create((RateStarsLayer *)v11, isPlatformer, 0, v13); v15 = *v14; v14[94] = (__int64)this + 424; (*(void (**)(void))(v15 + 1312))(); } else { *(_BYTE *)(GameManager::sharedState(v8) + 933) = 1; v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init( v17, "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.)", 0x13Au); v9 = FLAlertLayer::create( (__int64)this + 440, (cocos2d::CCLabelBMFont *)"Rating guide", (char *)v17, (ButtonSprite *)"OK", nullptr, 300.0); if ( (v17[0] & 1) != 0 ) operator delete(v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 72LL))(v9, 8); (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source