// // DailyLevelPage::updateTimers from 0x100231360 to 0x100231559 (505 bytes) // // 4 xrefs: // > DailyLevelPage::dailyStatusFinished @ 0x10023179e // > DailyLevelPage::dailyStatusFinished @ 0x1002317c2 // > DailyLevelPage::init @ 0x100230a4e // > DailyLevelPage::dailyStatusFinished @ 0x1002317a3 // // 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 DailyLevelPage::updateTimers(DailyLevelPage *a1, float a2) { GameLevelManager *v3; // rax GameLevelManager *v4; // rax __m128 v5; // xmm0 unsigned int v6; // edx void *v7; // rsi DailyLevelNode *m_dailyNode; // r15 cocos2d::CCLabelBMFont *m_timeLabel; // rdi char *v10; // rsi GameLevelManager *v11; // rax GameLevelManager *v12; // rax double v13; // [rsp+8h] [rbp-58h] timeb v14; // [rsp+10h] [rbp-50h] BYREF void *__p; // [rsp+20h] [rbp-40h] timeb v16; // [rsp+30h] [rbp-30h] BYREF void *v17; // [rsp+40h] [rbp-20h] v3 = GameLevelManager::sharedState(); if ( GameLevelManager::hasDailyStateBeenLoaded(v3, a1->m_type) ) { ftime(&v16); v13 = (double)(v16.millitm + 1000 * (v16.time & 0xFFFFF)) / -1000.0; v4 = GameLevelManager::sharedState(); v5 = 0; *(double *)v5.i64 = (double)GameLevelManager::getDailyTimer(v4, a1->m_type) + v13; v6 = 0; if ( (int)*(double *)v5.i64 > 0 ) v6 = (int)*(double *)v5.i64; DailyLevelPage::getDailyTimeString((size_t *)&v16, (__int64)a1, v6, v5); if ( a1->m_type != Event ) { v7 = (v16.time & 1) != 0 ? v17 : (char *)&v16.time + 1; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_timeLabel->setString)(a1->m_timeLabel, v7); m_dailyNode = a1->m_dailyNode; if ( m_dailyNode ) { if ( (v16.time & 1) != 0 ) { sub_100006B70(&v14, v17, *(unsigned __int64 *)&v16.millitm, *(double *)v5.i64); } else { __p = v17; v14 = v16; } m_timeLabel = m_dailyNode->m_timeLabel; if ( m_timeLabel ) { if ( (v14.time & 1) != 0 ) v10 = (char *)__p; else v10 = (char *)&v14.time + 1; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, char *))m_timeLabel->setString)(m_timeLabel, v10); } if ( (v14.time & 1) != 0 ) operator delete(__p); } } if ( (int)*(double *)v5.i64 <= 0 && !*(&a1->m_gettingDailyStatus + 1) ) { *(&a1->m_gettingDailyStatus + 1) = 1; if ( a1->m_type != Event ) { ((void (__fastcall *)(LoadingCircle *, __int64))a1->m_timeCircle->setVisible)(a1->m_timeCircle, 1); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_timeLabel->setVisible)(a1->m_timeLabel, 0); } v11 = GameLevelManager::sharedState(); GameLevelManager::resetDailyLevelState(v11, a1->m_type); if ( a1->m_gettingDailyStatus ) { ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_timeCircle->setVisible)(a1->m_timeCircle, 0); ((void (__fastcall *)(LoadingCircle *, _QWORD))a1->m_nodeCircle->setVisible)(a1->m_nodeCircle, 0); } else { a1->m_gettingDailyStatus = 1; v12 = GameLevelManager::sharedState(); GameLevelManager::getGJDailyLevelState(v12, a1->m_type); } a1->m_gettingDailyStatus = 0; } if ( (v16.time & 1) != 0 ) operator delete(v17); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source