// // LevelEditorLayer::stopTriggersInGroup from 0x7954ac to 0x7956ac (512 bytes) // // 2 xrefs: // > LevelEditorLayer::activateTriggerEffect @ 0x795bb0 // > @ 0x4b6d0 // // 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:53:33 +0000 // __int64 __fastcall LevelEditorLayer::stopTriggersInGroup(GJEffectManager **this, int a2, float a3) { cocos2d::CCObject *TriggerGroup; // x0 unsigned int *v7; // x1 GameObject ***v8; // x19 GameObject ***v9; // x0 GJEffectManager *v10; // x0 signed __int64 v11; // x20 GJEffectManager *v12; // x20 __int64 *v14; // x19 __int64 *v15; // x21 __int64 i; // x20 __int64 ColorAction; // x0 float v18; // s0 ColorAction *v19; // [xsp+68h] [xbp+68h] GameObject **v20; // [xsp+70h] [xbp+70h] BYREF TriggerGroup = LevelEditorLayer::getTriggerGroup((LevelEditorLayer *)this, a2); if ( TriggerGroup ) { v7 = *((unsigned int **)TriggerGroup + 7); if ( *v7 ) { v14 = *((__int64 **)v7 + 2); v15 = &v14[*v7 - 1]; if ( v14 <= v15 ) { for ( i = *v14; *v14; i = *v14 ) { if ( *(_BYTE *)(i + 1256) ) { if ( *(_BYTE *)(i + 1254) ) { ColorAction = GJEffectManager::getColorAction(*(this + 269), *(_DWORD *)(i + 1024)); if ( *(_DWORD *)(ColorAction + 128) == *(_DWORD *)(i + 916) ) { v18 = *(float *)(ColorAction + 160); v19 = (ColorAction *)ColorAction; *(_DWORD *)(ColorAction + 164) = 0; *(_DWORD *)(ColorAction + 68) = 0; ColorAction::step((ColorAction *)ColorAction, a3 - v18); *((_BYTE *)v19 + 56) = 1; GJEffectManager::updateColorAction(*(this + 269), v19); } } else { GJEffectManager::controlActionsForTrigger(*(this + 269)); } } if ( v15 < ++v14 ) break; } } } } v8 = (GameObject ***)*(this + 1856); if ( v8 != (GameObject ***)*(this + 1857) ) { do { while ( 1 ) { v20 = *v8; if ( (unsigned __int8)GameObject::belongsToGroup(*v20, a2) ) break; if ( ++v8 == (GameObject ***)*(this + 1857) ) return _stack_chk_guard; } v9 = (GameObject ***)*(this + 1860); if ( v9 == (GameObject ***)*(this + 1861) ) { std::vector::__push_back_slow_path((__int64)(this + 1859), &v20); } else { if ( v9 ) { *v9 = v20; v9 = (GameObject ***)*(this + 1860); } *(this + 1860) = (GJEffectManager *)(v9 + 1); } v10 = *(this + 1857); v11 = v10 - (GJEffectManager *)(v8 + 1); if ( v11 >> 3 ) { memmove(v8, v8 + 1, v11); v10 = *(this + 1857); } v12 = (GJEffectManager *)((char *)v8 + v11); if ( v12 != v10 ) { v10 = (GJEffectManager *)((char *)v10 + 8 * ~((unsigned __int64)((GJEffectManager *)((char *)v10 - 8) - v12) >> 3)); *(this + 1857) = v10; } } while ( v8 != (GameObject ***)v10 ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source