// // GJBaseGameLayer::updateTimerLabels from 0x48dfd8 to 0x48e18a (434 bytes) // // 1 xrefs: // > GJBaseGameLayer::update @ 0x497b62 // // 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 // void GJBaseGameLayer::updateTimerLabels(GJBaseGameLayer *a1) { std::__detail::_Hash_node_base *i; // r6 double v3; // d9 float v4; // s15 int v5; // r9 int v6; // r8 char *v7; // r0 int *M_nxt; // r9 int v9; // t1 int *v10; // [sp+0h] [bp-234h] GameToolbox v11; // [sp+1Ch] [bp-218h] BYREF _BYTE v12[4]; // [sp+20h] [bp-214h] BYREF const char *v13; // [sp+24h] [bp-210h] BYREF int v14; // [sp+28h] [bp-20Ch] unsigned int v15[3]; // [sp+2Ch] [bp-208h] BYREF char v16; // [sp+38h] [bp-1FCh] BYREF for ( i = a1->m_timeLabelObjects._M_h._M_before_begin._M_nxt; i; i = i->_M_nxt ) { v3 = GJEffectManager::timeForItem(a1->m_effectManager, (int)i[1]._M_nxt); v4 = fabs(v3); v5 = (int)floorf(v4); v6 = lroundf(); if ( v6 == 100 ) { ++v5; v6 = 0; } GameToolbox::intToString(&v11, v5); v15[1] = 500; v15[0] = 0; v15[2] = (unsigned int)&v16; if ( v3 < 0.0 ) { v13 = "-"; v14 = 0; fmt::BasicWriter::operator<<(v15, "-", 0); } fmt::BasicWriter::operator<<(v15, v5); v13 = "."; v14 = 0; fmt::BasicWriter::operator<<(v15, ".", 0); if ( v6 ) { if ( v6 <= 9 ) { v13 = "0"; v14 = 0; fmt::BasicWriter::operator<<(v15, "0", 0); } fmt::BasicWriter::operator<<(v15, v6); } else { v13 = "00"; v14 = 0; fmt::BasicWriter::operator<<(v15, "00", 0); } v7 = (char *)fmt::BasicWriter::c_str((int *)v15); sub_776584((int)v12, v7); M_nxt = (int *)i[2]._M_nxt; v10 = (int *)i[3]._M_nxt; while ( M_nxt != v10 ) { v9 = *M_nxt++; sub_775C20(&v13); LabelGameObject::queueUpdateLabel(v9, (int)&v13); sub_774008(&v13); } sub_774008(v12); fmt::internal::Array::free((int)v15); sub_774008(&v11); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source