// // GJBaseGameLayer::updateTimerLabels from 0x5bd558 to 0x5bd71a (450 bytes) // // 1 xrefs: // > GJBaseGameLayer::update @ 0x5be1c2 // // 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:53:43 +0000 // int __fastcall GJBaseGameLayer::updateTimerLabels(int this) { int v1; // r11 _DWORD *i; // r6 double v3; // r0 double v4; // d9 float v5; // s15 int v6; // r9 int v7; // r8 const char *v8; // r8 size_t v9; // r0 unsigned __int8 **v10; // r9 unsigned __int8 *v11; // r10 unsigned __int8 *v12; // t1 int *v13; // r1 unsigned __int8 **v14; // [sp+0h] [bp-24Ch] _BYTE v15[12]; // [sp+20h] [bp-22Ch] BYREF int v16[3]; // [sp+2Ch] [bp-220h] BYREF int v17[3]; // [sp+38h] [bp-214h] BYREF unsigned int v18[3]; // [sp+44h] [bp-208h] BYREF char v19; // [sp+50h] [bp-1FCh] BYREF v1 = this; for ( i = *(_DWORD **)(this + 2504); i; i = (_DWORD *)*i ) { LODWORD(v3) = GJEffectManager::timeForItem(*(GJEffectManager **)(v1 + 1524), i[2]); v4 = v3; v5 = fabs(v3); v6 = (int)floorf(v5); v7 = lroundf(); if ( v7 == 100 ) { ++v6; v7 = 0; } GameToolbox::intToString((GameToolbox *)v15, v6); v18[1] = 500; v18[0] = 0; v18[2] = (unsigned int)&v19; if ( v4 < 0.0 ) fmt::BasicWriter::operator<<(v18, "-", 0); fmt::BasicWriter::operator<<(v18, v6); fmt::BasicWriter::operator<<(v18, ".", 0); if ( v7 ) { if ( v7 <= 9 ) fmt::BasicWriter::operator<<(v18, "0", 0); fmt::BasicWriter::operator<<(v18, v7); } else { fmt::BasicWriter::operator<<(v18, "00", 0); } v8 = (const char *)fmt::BasicWriter::c_str((int *)v18); memset(v16, 0, sizeof(v16)); v9 = strlen(v8); std::string::__init(v16, v8, v9); v10 = (unsigned __int8 **)i[3]; v14 = (unsigned __int8 **)i[4]; while ( v10 != v14 ) { v12 = *v10++; v11 = v12; if ( v12[1676] ) v13 = (int *)v15; else v13 = v16; std::string::basic_string(v17, (int)v13); LabelGameObject::queueUpdateLabel(v11, (unsigned __int8 *)v17); std::string::~string((int)v17); } std::string::~string((int)v16); fmt::internal::Array::free((int)v18); this = std::string::~string((int)v15); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source