// // GameToolbox::msToTimeString from 0x582e18 to 0x582fc4 (428 bytes) // // 3 xrefs: // > GJLocalLevelScoreCell::loadFromScore @ 0x61a4d4 // > GJLevelScoreCell::loadFromScore @ 0x61ae04 // > @ 0x70a58 // // 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::msToTimeString@(GameToolbox *this@, int a2@, _QWORD *a3@) { unsigned int v4; // w8 unsigned int v5; // w2 unsigned int v6; // w4 unsigned int v7; // w3 cocos2d::CCString *v8; // x0 size_t v9; // x0 const char *CString; // [xsp+38h] [xbp+38h] v4 = (int)this / 1000 / 3600; v5 = (int)this / 1000 / 60 % 60; *a3 = &byte_124B6C8; v6 = (int)this % 1000; v7 = (int)this / 1000 % 60; if ( v4 | a2 | v5 ) { if ( v4 || a2 == 2 ) v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i:%02d:%02d.%03d", (const char *)v4); else v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i:%02d.%03d", (const char *)v5, v7, v6); } else { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i.%03d", (const char *)v7, v6); } CString = cocos2d::CCString::getCString(v8); v9 = strlen(CString); sub_D1798C(a3, CString, v9); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source