// // LevelInfoLayer::onUpdate from 0x1402fecd0 to 0x1402fee0b (315 bytes) // // 2 xrefs: // > LevelInfoLayer::init @ 0x1402f8336 // > @ 0x1406d42e0 // // 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 // // Hidden C++ exception states: #wind=3 void LevelInfoLayer::onUpdate(LevelInfoLayer *a1, cocos2d::CCObject *a2) { int v3; // edi GameLevelManager *v4; // rsi cocos2d::CCString *v5; // rax const char *CString; // rax LevelInfoLayer *v7; // rcx GameLevelManager *v8; // rcx void *v9; // [rsp+30h] [rbp+8h] void *v10; // [rsp+30h] [rbp+8h] if ( !a1->m_isBusy ) { if ( LevelInfoLayer::shouldDownloadLevel(a1) ) { LevelInfoLayer::downloadLevel(a1); } else { v3 = a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed; v4 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v9 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v9); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v4 = (GameLevelManager *)qword_1406C2EC0; } v5 = cocos2d::CCString::createWithFormat("%i", v3); CString = cocos2d::CCString::getCString(v5); if ( GameLevelManager::isTimeValid(v4, CString, 600.0) ) { LevelInfoLayer::showUpdateAlert(v7, UpToDate); } else { v8 = (GameLevelManager *)qword_1406C2EC0; if ( !qword_1406C2EC0 ) { v10 = operator new(0x3D0u); qword_1406C2EC0 = sub_140141280((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0); v8 = (GameLevelManager *)qword_1406C2EC0; } v8->m_levelUpdateDelegate = &a1->LevelUpdateDelegate; GameLevelManager::updateLevel(v8, a1->m_level); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source