// // EditorUI::updateGridNodeSize from 0x481878 to 0x481914 (156 bytes) // // 5 xrefs: // > EditorUI::setCustomGridNodeSize @ 0x481982 // > EditorUI::setCustomGridEnabled @ 0x4819cc // > EditorUI::onCreateButton @ 0x4827e2 // > EditorUI::toggleSpecialEditButtons @ 0x485f92 // > EditorUI::resetUI @ 0x489ce8 // // 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:49:22 +0000 // int __fastcall EditorUI::updateGridNodeSize(cocos2d::CCArray **this) { cocos2d::CCArray **v1; // r5 int v2; // r1 unsigned int v3; // r4 float v4; // s16 int v5; // r6 int *v6; // r7 ObjectToolbox *v7; // r0 float v8; // r0 v1 = this; if ( *(this + 235) == (cocos2d::CCArray *)((char *)&dword_0 + 2) ) { v2 = (int)*(this + 223); } else { v3 = (unsigned int)*(this + 249); if ( v3 ) { v2 = *(_DWORD *)(v3 + 892); } else if ( cocos2d::CCArray::count(*(this + 167)) ) { v4 = -1.0; v5 = 0; while ( v3 < cocos2d::CCArray::count(v1[167]) ) { v6 = (int *)cocos2d::CCArray::objectAtIndex(v1[167], v3); v7 = (ObjectToolbox *)ObjectToolbox::sharedState((ObjectToolbox *)v6); v8 = COERCE_FLOAT(ObjectToolbox::gridNodeSizeForKey(v7, v6[223])); if ( v4 == -1.0 ) { v5 = v6[223]; v4 = v8; } else if ( v4 != v8 ) { v5 = -1; break; } ++v3; } this = v1; v2 = v5; } else { this = v1; v2 = -1; } } return EditorUI::updateGridNodeSize((EditorUI *)this, v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source