// // GameLevelManager::getTimeLeft from 0x1000997f0 to 0x1000998b4 (196 bytes) // // 10 xrefs: // > AccountLayer::onBackup @ 0x100165e4c // > AccountLayer::onSync @ 0x100165fbc // > ProfilePage::onUpdate @ 0x1001978ec // > ProfilePage::onComment @ 0x10019b584 // > FRequestProfilePage::onUpdate @ 0x1001b6d2c // > MessagesProfilePage::onUpdate @ 0x1001ccbd8 // > FriendsProfilePage::onUpdate @ 0x1001d954c // > LevelLeaderboard::onUpdate @ 0x100250470 // > InfoLayer::onComment @ 0x100351880 // > InfoLayer::onRefreshComments @ 0x10035285c // // 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 // int __fastcall GameLevelManager::getTimeLeft(GameLevelManager *a1, const char *a2, float a3) { cocos2d::CCDictionary *m_timerDict; // x19 __int64 v5; // x0 cocos2d::CCString *v6; // x19 double v7; // d9 double v8; // d0 double v9; // d2 bool v10; // cc double v11; // d0 timeb v13; // [xsp+8h] [xbp-38h] BYREF char v14; // [xsp+1Fh] [xbp-21h] m_timerDict = a1->m_timerDict; sub_100009900(&v13, (char *)a2); v5 = cocos2d::CCDictionary::objectForKey_1(m_timerDict, &v13); v6 = (cocos2d::CCString *)v5; if ( v14 < 0 ) { operator delete((void *)v13.time); if ( v6 ) goto LABEL_3; return 0; } if ( !v5 ) return 0; LABEL_3: v7 = cocos2d::CCString::doubleValue(v6); ftime(&v13); v8 = (double)(v13.millitm + 1000 * (unsigned __int64)(v13.time & 0xFFFFF)) / 1000.0 - v7; v9 = a3 - v8; v10 = v8 > a3; v11 = 0.0; if ( v10 ) v9 = 0.0; if ( v9 <= a3 ) return (int)v9; return (int)v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source