// // GameToolbox::msToTimeString from 0x2ede44 to 0x2edee8 (164 bytes) // // 2 xrefs: // > GJLocalLevelScoreCell::loadFromScore @ 0x3380e6 // > GJLevelScoreCell::loadFromScore @ 0x33864c // // 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 // GameToolbox *__fastcall GameToolbox::msToTimeString(GameToolbox *this, int a2, int a3, int a4) { int v5; // r8 int v6; // r7 int v7; // r6 int v8; // r1 cocos2d::CCString *v9; // r0 char *CString; // r0 v5 = a2 / 1000; v6 = a2 % 1000; v7 = a2 / 1000 / 60 % 60; v8 = a2 / 1000 / 3600; *(_DWORD *)this = &unk_ACDDA8; if ( v7 ) { if ( v8 ) goto LABEL_8; goto LABEL_6; } if ( v8 ) goto LABEL_8; if ( a3 ) { LABEL_6: if ( a3 != 2 ) { v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i:%02d.%03d", (const char *)v7, v5 % 60, v6, this, a2, a3); goto LABEL_9; } LABEL_8: v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i:%02d:%02d.%03d", (const char *)v8, v7, v5 % 60, v6, a2, a3); goto LABEL_9; } v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i.%03d", (const char *)(v5 % 60), v6, a4, this, a2, 0); LABEL_9: CString = (char *)cocos2d::CCString::getCString(v9); sub_7753D4((int)this, CString); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source