// // GameToolbox::getTimeString from 0x581a08 to 0x581b38 (304 bytes) // // 7 xrefs: // > LevelInfoLayer::updateLabelValues @ 0x6da2dc // > GameLevelManager::onUploadCommentCompleted @ 0x6f93f0 // > ChallengesPage::updateTimers @ 0x908968 // > DailyLevelPage::getDailyTimeString @ 0x913218 // > RewardsPage::updateTimers @ 0x935054 // > RewardsPage::updateTimers @ 0x935210 // > @ 0x42150 // // 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 // __int64 __usercall GameToolbox::getTimeString@(GameToolbox *this@, const char *a2@, __int64 a3@) { int v3; // w6 float v5; // s0 unsigned int v6; // w3 float v7; // s0 unsigned int v8; // w0 __int64 v9; // x2 char *v10; // x0 cocos2d::CCString *v11; // x0 char *CString; // x0 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); v9 = (unsigned int)(int)(float)(v7 - (float)(int)(60 * v8)); if ( (int)((_DWORD)a2 + v6 + v8) <= 0 ) { v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%isec", (const char *)(unsigned int)v9); goto LABEL_6; } if ( (int)((_DWORD)a2 + v6) <= 0 ) { a2 = (const char *)v8; if ( v3 ) { v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%imin", (const char *)v8, v9); goto LABEL_6; } v10 = "%imin %02dsec"; } else { if ( (int)a2 <= 0 ) { v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%ih %imin", (const char *)v6, v8); goto LABEL_6; } v9 = v6; v10 = "%idays %ih"; } v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)v10, a2, v9); LABEL_6: CString = (char *)cocos2d::CCString::getCString(v11); sub_D153B8(a3, CString); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source