// // GameToolbox::getTimeString from 0x69e7e0 to 0x69e8fc (284 bytes) // // 7 xrefs: // > LevelInfoLayer::updateLabelValues @ 0x7e8ed4 // > GameLevelManager::onUploadCommentCompleted @ 0x83306c // > ChallengesPage::updateTimers @ 0xa62828 // > DailyLevelPage::getDailyTimeString @ 0xa6d57c // > RewardsPage::updateTimers @ 0xa85348 // > RewardsPage::updateTimers @ 0xa85390 // > @ 0x5e930 // // This function is hookable on this platform (idp: arm, 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:50:41 +0000 // __int64 *__usercall GameToolbox::getTimeString@(GameToolbox *this@, const char *a2@, __int64 *a3@) { int v3; // w6 float v5; // s0 unsigned int v6; // w2 float v7; // s0 unsigned int v8; // w0 char *v9; // x0 cocos2d::CCString *v10; // x0 const char *CString; // x0 size_t v12; // x0 char *v14; // [xsp+28h] [xbp+28h] v3 = (unsigned __int8)a2; LODWORD(a2) = vcvtms_s32_f32((float)(int)this / 86400.0); v5 = (float)(int)this - (float)((float)(int)a2 * 86400.0); v6 = vcvtms_s32_f32(v5 / 3600.0); v7 = v5 - (float)(int)(3600 * v6); v8 = vcvtms_s32_f32(v7 / 60.0); if ( (int)((_DWORD)a2 + v6 + v8) <= 0 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%isec", (const char *)(unsigned int)(int)(float)(v7 - (float)(int)(60 * v8))); goto LABEL_6; } if ( (int)((_DWORD)a2 + v6) <= 0 ) { a2 = (const char *)v8; if ( v3 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%imin", (const char *)v8); goto LABEL_6; } v9 = "%imin %02dsec"; } else { if ( (int)a2 <= 0 ) { v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%ih %imin", (const char *)v6); goto LABEL_6; } v9 = "%idays %ih"; } v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v9, a2); LABEL_6: CString = (const char *)cocos2d::CCString::getCString(v10); *a3 = 0; a3[1] = 0; a3[2] = 0; v14 = (char *)CString; v12 = strlen(CString); std::string::__init(a3, v14, v12); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source