// // ChallengesPage::updateTimers from 0x600860 to 0x6009d8 (376 bytes) // // 3 xrefs: // > ChallengesPage::challengeStatusFinished @ 0x600a02 // > ChallengesPage::challengeStatusFinished @ 0x600a62 // > ChallengesPage::claimItem @ 0x600b90 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:54:40 +0000 // int __fastcall ChallengesPage::updateTimers(ChallengesPage *this, float a2) { GameStatsManager *v3; // r0 int result; // r0 GameStatsManager *v5; // r0 double v6; // d8 int v7; // s15 int v8; // r5 void (__fastcall *v9)(int, int); // r6 int v10; // r2 cocos2d::CCString *v11; // r0 int CString; // r0 int v13; // r3 int v14; // r3 int v15; // r6 int v16; // r11 int v17; // r2 GameStatsManager *v18; // r0 int v19; // r0 int v20; // [sp+4h] [bp-28h] BYREF int v21; // [sp+8h] [bp-24h] int v22; // [sp+Ch] [bp-20h] BYREF size_t v23; // [sp+10h] [bp-1Ch] char *v24; // [sp+14h] [bp-18h] int v25; // [sp+18h] [bp-14h] BYREF size_t v26; // [sp+1Ch] [bp-10h] char *v27; // [sp+20h] [bp-Ch] v3 = (GameStatsManager *)GameStatsManager::sharedState(this); result = GameStatsManager::areChallengesLoaded(v3); if ( result ) { v5 = (GameStatsManager *)clock_gettime(0, (struct timespec *)&v20); v6 = (double)v20 + (double)v21 / 1000000000.0; v7 = (int)(*(double *)(GameStatsManager::sharedState(v5) + 360) - v6); GameToolbox::getTimeString((GameToolbox *)&v22, v7 & ~(v7 >> 31), 0); v8 = *((_DWORD *)this + 134); v9 = *(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 464); v10 = (unsigned __int8)v22 << 31; if ( (v22 & 1) != 0 ) v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"New quests in: %s", v24, v10); else v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"New quests in: %s", (const char *)&v22 + 1, v10); CString = cocos2d::CCString::getCString(v11); v9(v8, CString); v13 = *((_DWORD *)this + 138); if ( v13 ) { v14 = *(_DWORD *)(v13 + 52); if ( v14 ) v15 = *(_DWORD *)(v14 + 272); else v15 = 0; while ( v14 ) { v16 = *(_DWORD *)(v14 + 260); v25 = 0; v26 = 0; v27 = nullptr; if ( (v22 & 1) != 0 ) { std::string::__init(&v25, v24, v23); } else { v25 = v22; v26 = v23; v27 = v24; } ChallengeNode::updateTimeLabel(v16, (unsigned __int8 *)&v25); std::string::~string((int)&v25); if ( v15 ) v17 = *(_DWORD *)(v15 + 272); else v17 = 0; v14 = v15; v15 = v17; } } if ( (v7 & ~(v7 >> 31)) == 0 && !*((_BYTE *)this + 545) ) { (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 135) + 172))(*((_DWORD *)this + 135), 1); v18 = (GameStatsManager *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 134) + 172))( *((_DWORD *)this + 134), 0); *((_BYTE *)this + 545) = 1; *((_BYTE *)this + 544) = 0; v19 = GameStatsManager::sharedState(v18); GameStatsManager::resetChallengeTimer(v19); ChallengesPage::tryGetChallenges(this); } return std::string::~string((int)&v22); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source