// // GameToolbox::getTimeString from 0x100045ae0 to 0x100045be8 (264 bytes) // // 6 xrefs: // > LevelInfoLayer::updateLabelValues @ 0x100029538 // > ChallengesPage::updateTimers @ 0x100032394 // > GameLevelManager::onUploadCommentCompleted @ 0x10008c4ec // > DailyLevelPage::getDailyTimeString @ 0x1001b9bd4 // > RewardsPage::updateTimers @ 0x1001c47c0 // > RewardsPage::updateTimers @ 0x1001c4834 // // 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 // _QWORD *__usercall GameToolbox::getTimeString@(int a1@, int a2@, _QWORD *a3@) { float v4; // s2 int v5; // w8 float v6; // s0 unsigned int v7; // w10 unsigned int v8; // w9 int v9; // w12 cocos2d::CCString *v10; // x0 char *CString; // x1 v4 = (float)a1 / 86400.0; v5 = vcvtms_s32_f32(v4); v6 = (float)a1 - (float)((float)(int)floorf(v4) * 86400.0); v7 = vcvtms_s32_f32(v6 / 3600.0); v8 = vcvtms_s32_f32((float)(v6 - (float)(int)(3600 * v7)) / 60.0); v9 = v7 + v5; if ( ((int)(v9 + v8) < 0) ^ __OFADD__(v9, v8) | (v9 + v8 == 0) ) { v10 = (cocos2d::CCString *)sub_100268F4C("%isec"); } else if ( v9 <= 0 ) { if ( a2 ) v10 = (cocos2d::CCString *)sub_100268F4C("%imin"); else v10 = (cocos2d::CCString *)sub_100268F4C("%imin %02dsec"); } else if ( v5 <= 0 ) { v10 = (cocos2d::CCString *)sub_100268F4C("%ih %imin"); } else { v10 = (cocos2d::CCString *)sub_100268F4C("%idays %ih"); } CString = (char *)cocos2d::CCString::getCString(v10); return sub_100009900(a3, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source