// // LevelEditorLayer::removeSpecial from 0x4640dc to 0x4643be (738 bytes) // // 6 xrefs: // > LevelEditorLayer::removeObject @ 0x464416 // > LevelEditorLayer::handleAction @ 0x46ef86 // > LevelEditorLayer::handleAction @ 0x46efe0 // > LevelEditorLayer::refreshSpecial @ 0x46f492 // > EditorUI::createNewKeyframeAnim @ 0x4830e0 // > EditorUI::onCreateObject @ 0x48749a // // 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:48:54 +0000 // int __fastcall LevelEditorLayer::removeSpecial(LevelEditorLayer *this, GameObject *a2) { int v4; // r3 int v5; // r3 int v6; // r7 int v7; // s15 GameObject *v8; // r7 float v9; // s16 int v10; // r3 int v11; // r3 int v12; // r2 int result; // r0 _BYTE v14[4]; // [sp+4h] [bp-18h] BYREF float v15; // [sp+8h] [bp-14h] _BYTE v16[4]; // [sp+Ch] [bp-10h] BYREF float v17; // [sp+10h] [bp-Ch] if ( !*((_BYTE *)a2 + 1094) ) LevelEditorLayer::setObjectCount(this, *((_DWORD *)this + 2967) - *((_DWORD *)this + 2968) - 1); v4 = *((_DWORD *)a2 + 223); if ( v4 == 1329 ) { v6 = *((_DWORD *)this + 2947) - *((_DWORD *)this + 2948) - 1; *((_DWORD *)this + 2949) = v6; v7 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *((_DWORD *)this + 2948) = v7; *((_DWORD *)this + 2947) = v7 + v6; } else if ( v4 > 1329 ) { if ( v4 == 2065 ) { v5 = 11752; } else { if ( v4 != 3032 ) goto LABEL_17; GJBaseGameLayer::removeKeyframe(this, a2); v5 = 11756; } cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)((char *)this + v5), a2, 1); } else if ( v4 == 747 ) { v8 = *((GameObject **)a2 + 413); if ( v8 ) { cocos2d::CCObject::retain(*((cocos2d::CCObject **)a2 + 413)); (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)v8 + 908))(v14, v8); v9 = v15; (*(void (__fastcall **)(_BYTE *, GameObject *))(*(_DWORD *)a2 + 908))(v16, a2); *((float *)a2 + 415) = v9 - v17; if ( !*((_BYTE *)this + 12208) ) LevelEditorLayer::removeObject(this, v8, 1); *((_DWORD *)a2 + 413) = 0; cocos2d::CCObject::release(v8); } } LABEL_17: if ( *((_BYTE *)a2 + 1091) ) cocos2d::CCPoint::operator=((char *)a2 + 1616, &flt_D2B8B8); if ( *((_BYTE *)a2 + 1088) ) DrawGridLayer::removeFromEffects(*((cocos2d::CCArray ***)this + 2970), a2); if ( *((_DWORD *)a2 + 271) == 1 ) LevelEditorLayer::tryUpdateSpeedObject(this, a2, 1); v10 = *((_DWORD *)a2 + 223); if ( v10 == 1814 ) goto LABEL_43; if ( v10 > 1814 ) { if ( v10 == 2067 ) goto LABEL_43; if ( v10 > 2067 ) { if ( v10 == 3016 ) goto LABEL_43; if ( v10 == 3642 ) { DrawGridLayer::removeAudioLineObject(*((_DWORD **)this + 2970), (int)a2); goto LABEL_50; } if ( v10 != 2068 ) goto LABEL_47; } else if ( v10 != 1912 ) { if ( v10 == 2016 ) { v11 = 11748; goto LABEL_49; } goto LABEL_47; } goto LABEL_45; } if ( v10 == 1007 ) { v11 = 11736; goto LABEL_49; } if ( v10 >= 1008 ) { if ( v10 != 1268 ) { if ( v10 < 1268 || (unsigned int)(v10 - 1346) > 1 ) goto LABEL_47; LABEL_43: v11 = 11744; goto LABEL_49; } LABEL_45: v11 = 11740; goto LABEL_49; } if ( v10 == 901 ) goto LABEL_43; if ( v10 == 1006 ) { v11 = 11728; goto LABEL_49; } LABEL_47: if ( !GameObject::isColorTrigger(a2) ) goto LABEL_50; v11 = 11732; LABEL_49: cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)((char *)this + v11), a2, 1); LABEL_50: if ( *((_BYTE *)a2 + 1089) ) { cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 2952), a2, 1); *((_BYTE *)this + 11812) = 1; } if ( *((_BYTE *)a2 + 1093) || (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 844))(a2) ) cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 2941), a2, 1); if ( *((_BYTE *)a2 + 1091) ) cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 2931), a2, 1); v12 = *((_DWORD *)this + 3053); if ( v12 && *(_DWORD *)(v12 + 780) == *((_DWORD *)a2 + 195) ) *((_DWORD *)this + 3053) = 0; if ( *((GameObject **)this + 3054) == a2 ) *((_DWORD *)this + 3054) = 0; if ( *((GameObject **)this + 3055) == a2 ) *((_DWORD *)this + 3055) = 0; if ( *((GameObject **)this + 3073) == a2 ) *((_DWORD *)this + 3073) = 0; if ( *((GameObject **)this + 3074) == a2 ) *((_DWORD *)this + 3074) = 0; cocos2d::CCArray::removeObject(*((cocos2d::CCArray **)this + 522), a2, 1); GJBaseGameLayer::removeFromGroupParents(this, a2); GJBaseGameLayer::removeFromGroups(this, a2); result = GJBaseGameLayer::removeFromStickyGroup(this, a2); *((_BYTE *)this + 12278) = 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source