// // DS_Dictionary::removeKey from 0xb43234 to 0xb4333c (264 bytes) // // 7 xrefs: // > DS_Dictionary::setVec2ForKey @ 0xb43ffc // > DS_Dictionary::setRectForKey @ 0xb446f4 // > DS_Dictionary::setStringArrayForKey @ 0xb44c08 // > DS_Dictionary::setVec2ArrayForKey @ 0xb44e54 // > DS_Dictionary::setRectArrayForKey @ 0xb45628 // > DS_Dictionary::getArrayForKey @ 0xb46f14 // > @ 0x4efc0 // // 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 DS_Dictionary::removeKey(DS_Dictionary *a1, const char *a2) { _BOOL4 compatible; // w1 pugi::xml_node *v5; // x0 const char *v6; // x1 const char *v7; // x0 const char *v8; // x1 pugi::xml_node *m_finish; // x21 pugi::xml_node v10; // [xsp+48h] [xbp+48h] BYREF pugi::xml_node v11; // [xsp+50h] [xbp+50h] BYREF compatible = a1->compatible; v5 = a1->dictTree.m_finish - 1; if ( compatible ) v6 = "key"; else v6 = "k"; for ( v10._root = (pugi::xml_node_struct *)pugi::xml_node::child(v5, v6); pugi::xml_node::operator void (*)(pugi::xml_node***)(&v10); v10._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10, v8) ) { v7 = (const char *)pugi::xml_node::child_value(&v10); if ( !strcmp(v7, a2) ) { m_finish = a1->dictTree.m_finish; v11._root = (pugi::xml_node_struct *)pugi::xml_node::next_sibling(&v10); pugi::xml_node::remove_child(m_finish - 1, &v11); pugi::xml_node::remove_child(a1->dictTree.m_finish - 1, &v10); return; } if ( a1->compatible ) v8 = "key"; else v8 = "k"; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source