// // LevelInfoLayer::onRateStars from 0x1002ae660 to 0x1002ae79c (316 bytes) // // 2 xrefs: // > LevelInfoLayer::FLAlert_Clicked @ 0x1002b1b54 // > LevelInfoLayer::init @ 0x1002aaf86 // // This function is hookable on this platform (idp: pc, 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:28:00 +0000 // void __fastcall LevelInfoLayer::onRateStars(__int64 a1, __int64 a2, __int64 a3) { __int64 v3; // rbx __int64 v4; // rdx double v5; // xmm0_8 __int64 v6; // rax __int64 v7; // rdx double v8; // xmm0_8 __int64 v9; // rax __int64 v10; // rdi unsigned int v11; // r14d unsigned __int8 isPlatformer; // al _QWORD *v13; // rax __int64 v14; // rax __int64 v15; // rbx _QWORD v16[2]; // [rsp+8h] [rbp-28h] BYREF void *__p; // [rsp+18h] [rbp-18h] if ( !*(_BYTE *)(a1 + 488) ) { v3 = a1; *(_QWORD *)&v5 = GameManager::sharedState(a1, a2, a3).u64[0]; if ( *(_DWORD *)(v6 + 660) == *(_DWORD *)(v6 + 664) ) { a1 = GameLevelManager::sharedState(v5); GameLevelManager::updateUserScore(a1); } *(_QWORD *)&v8 = GameManager::sharedState(a1, a2, v4).u64[0]; if ( *(_BYTE *)(v9 + 933) ) { v10 = *(_QWORD *)(v3 + 504); v11 = *(_DWORD *)(v10 + 328) - *(_DWORD *)(v10 + 332); isPlatformer = GJGameLevel::isPlatformer(v10, v8); v13 = RateStarsLayer::create(v11, isPlatformer, 0); v13[94] = v3 + 424; (*(void (__fastcall **)(_QWORD *))(*v13 + 1312LL))(v13); } else { GameManager::sharedState(a1, a2, v7); *(_BYTE *)(v14 + 933) = 1; __p = operator new(0x140u); v16[0] = 321; v16[1] = 314; strcpy( (char *)__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.)"); v15 = FLAlertLayer::create_1(v3 + 440, "Rating guide", v16, "OK", 0, 300.0); if ( (v16[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 72LL))(v15, 8); (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source