// // GJBaseGameLayer::addObjectCounter from 0x483868 to 0x4838cc (100 bytes) // // 3 xrefs: // > PlayLayer::addObject @ 0x310dde // > LevelEditorLayer::recreateGroups @ 0x36e81c // > LevelEditorLayer::init @ 0x376da8 // // 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::addObjectCounter(GJBaseGameLayer *a1, LabelGameObject *a2) { std::unordered_map> *p_m_timeLabelObjects; // r0 _DWORD *v3; // r0 LabelGameObject **v4; // r2 LabelGameObject *v5; // [sp+4h] [bp-Ch] BYREF int m_itemID; // [sp+8h] [bp-8h] BYREF v5 = a2; m_itemID = a2->m_itemID; if ( a2->m_shownSpecial < 0 ) m_itemID = a2->m_shownSpecial; if ( a2->m_isTimeCounter ) p_m_timeLabelObjects = &a1->m_timeLabelObjects; else p_m_timeLabelObjects = &a1->m_labelObjects; v3 = std::__detail::_Map_base>,std::allocator>>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( p_m_timeLabelObjects, (unsigned int *)&m_itemID); v4 = (LabelGameObject **)v3[1]; if ( v4 == (LabelGameObject **)v3[2] ) { std::vector::_M_emplace_back_aux((int)v3, &v5); } else { if ( v4 ) *v4 = v5; v3[1] += 4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source