// // EditorUI::uncheckPortals from 0x7c44a0 to 0x7c4570 (208 bytes) // // 3 xrefs: // > EditorUI::handleEditorAction @ 0xbd75cc // > EditorCommandsPopup::onCommand @ 0xcbbfd0 // > @ 0x105358 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:54:08 +0000 // __int64 __fastcall EditorUI::uncheckPortals(LevelEditorLayer **this) { __int64 result; // x0 cocos2d::CCArray *v3; // x21 int v4; // w22 unsigned int v5; // w19 __int64 v6; // x20 result = LevelEditorLayer::getAllObjects(*(this + 180)); v3 = (cocos2d::CCArray *)result; if ( result ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)result); v4 = result; if ( (int)result > 0 ) { v5 = 0; while ( 1 ) { v6 = cocos2d::CCArray::objectAtIndex(v3, v5); result = *(unsigned int *)(v6 + 1028); if ( (_DWORD)result != 111 ) { if ( (int)result > 111 ) { if ( (_DWORD)result != 1331 && (_DWORD)result != 1933 && (_DWORD)result != 660 ) goto LABEL_7; } else if ( (_DWORD)result != 13 && (_DWORD)result != 47 ) { goto LABEL_7; } } result = *(unsigned __int8 *)(v6 + 1768); if ( *(_BYTE *)(v6 + 1768) ) { ++v5; result = DrawGridLayer::removeFromGuides(*((cocos2d::CCArray ***)*(this + 180) + 1786), (GameObject *)v6); *(_BYTE *)(v6 + 1768) = 0; if ( v4 == v5 ) return result; } else { LABEL_7: if ( v4 == ++v5 ) return result; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source