// // GameToolbox::msToTimeString from 0x140074770 to 0x1400748da (362 bytes) // // 4 xrefs: // > GJLocalLevelScoreCell::loadFromScore @ 0x140156c96 // > GJLevelScoreCell::loadFromScore @ 0x1401576b7 // > LevelStatsInfoPopup::buildStatsText @ 0x140426f5e // > @ 0x1409118c4 // // This function is hookable on this platform (idp: pc, 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 11:25:50 +0000 // // Hidden C++ exception states: #wind=1 void **__fastcall GameToolbox::msToTimeString(void **a1, int a2, int a3) { int v5; // r8d int v6; // r11d int v7; // r10d int v8; // edx cocos2d::CCString *v9; // rax char *CString; // rax size_t v11; // r8 cocos2d::CCString *v12; // rax cocos2d::CCString *v13; // rax v5 = a2 % 1000; v6 = a2 / 1000 % 60; v7 = a2 / 1000 / 60 % 60; v8 = a2 / 1000 / 3600; *(_OWORD *)a1 = 0; a1[2] = nullptr; a1[3] = (void *)15; *(_BYTE *)a1 = 0; if ( v8 ) { v13 = cocos2d::CCString::createWithFormat("%i:%02d:%02d.%03d", v8, v7, v6, v5); CString = (char *)cocos2d::CCString::getCString(v13); v11 = -1; do ++v11; while ( CString[v11] ); } else if ( v7 || a3 ) { v12 = cocos2d::CCString::createWithFormat("%i:%02d.%03d", v7, v6, v5); CString = (char *)cocos2d::CCString::getCString(v12); v11 = -1; do ++v11; while ( CString[v11] ); } else { v9 = cocos2d::CCString::createWithFormat("%i.%03d", v6, v5); CString = (char *)cocos2d::CCString::getCString(v9); v11 = -1; do ++v11; while ( CString[v11] ); } sub_1400405A0(a1, CString, v11); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source