// // ScrollViewPopup::addVersionHeader from 0x6c9f18 to 0x6ca0b6 (414 bytes) // // 2 xrefs: // > MusicChangelogPopup::buildContent @ 0x6c0e98 // > SFXChangelogPopup::buildContent @ 0x6c982e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:56:58 +0000 // int __fastcall ScrollViewPopup::addVersionHeader( ScrollViewPopup *this, cocos2d::CCNode *a2, const char *a3, time_t a4, float a5, float a6) { struct tm *v8; // r3 const char *v9; // r2 char *v10; // r3 cocos2d::CCString *v11; // r0 const char *CString; // r9 size_t v13; // r0 size_t v14; // r4 cocos2d::CCLabelBMFont *v15; // r3 unsigned int v16; // r10 cocos2d::CCLabelBMFont *v17; // r0 cocos2d::CCLabelBMFont *v18; // r4 void (__fastcall *v19)(cocos2d::CCLabelBMFont *, time_t *); // r10 void (__fastcall *v20)(cocos2d::CCLabelBMFont *, time_t *); // r10 time_t timer[2]; // [sp+4h] [bp-8h] BYREF int v23; // [sp+Ch] [bp+0h] BYREF int v24; // [sp+10h] [bp+4h] char *v25; // [sp+14h] [bp+8h] int v26; // [sp+18h] [bp+Ch] BYREF size_t v27; // [sp+1Ch] [bp+10h] cocos2d::CCLabelBMFont *v28; // [sp+20h] [bp+14h] char s[32]; // [sp+24h] [bp+18h] BYREF v23 = 0; v24 = 0; v25 = nullptr; if ( a4 > 0 ) { timer[0] = a4; v8 = gmtime(timer); if ( v8 ) { strftime(s, 0x20u, "%b %d, %Y", v8); std::string::assign(&v23, s); } } if ( (v23 & 1) != 0 ) { if ( v24 ) v9 = " - "; else v9 = (const char *)&unk_B6B226; v10 = v25; } else { v10 = (char *)&v23 + 1; if ( (unsigned __int8)v23 >> 1 ) v9 = " - "; else v9 = (const char *)&unk_B6B226; } v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Version %i%s%s", a3, v9, v10); CString = (const char *)cocos2d::CCString::getCString(v11); v26 = 0; v27 = 0; v28 = nullptr; v13 = strlen(CString); v14 = v13; if ( v13 > 0xFFFFFFEF ) sub_389F40(); if ( v13 > 0xA ) { v16 = (v13 + 16) & 0xFFFFFFF0; v15 = (cocos2d::CCLabelBMFont *)operator new(v16); v28 = v15; v26 = v16 | 1; v27 = v14; } else { LOBYTE(v26) = 2 * v13; v15 = (cocos2d::CCLabelBMFont *)((char *)&v26 + 1); if ( !v13 ) goto LABEL_19; } v15 = (cocos2d::CCLabelBMFont *)memcpy(v15, CString, v14); LABEL_19: *((_BYTE *)v15 + v14) = 0; if ( (v26 & 1) != 0 ) v17 = v28; else v17 = (cocos2d::CCLabelBMFont *)((char *)&v26 + 1); v18 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v17, "goldFont.fnt", nullptr); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v18 + 80))(v18, 1057803469); cocos2d::CCLabelBMFont::limitLabelWidth(v18, a6 - 30.0, 0.55, 0.3); v19 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, time_t *))(*(_DWORD *)v18 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)timer, 0.0, 0.5); v19(v18, timer); v20 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, time_t *))(*(_DWORD *)v18 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)timer, 15.0, (float)(a5 - 4.0) - 11.0); v20(v18, timer); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))(*(_DWORD *)a2 + 228))(a2, v18); std::string::~string((int)&v26); std::string::~string((int)&v23); return 1104150528; }
GD Web Decomp Icon

GD Web Decomp

Raw Source