// // GJBaseGameLayer::destroyObject from 0x5a49a0 to 0x5a4a3e (158 bytes) // // 6 xrefs: // > PlayerObject::collidedWithObjectInternal @ 0x43cc60 // > PlayerObject::collidedWithObjectInternal @ 0x43ce14 // > PlayerObject::collidedWithObjectInternal @ 0x43d2ce // > PlayerObject::collidedWithObjectInternal @ 0x43d4c0 // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba922 // > GJBaseGameLayer::collisionCheckObjects @ 0x5baa24 // // 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:53:19 +0000 // _DWORD *__fastcall GJBaseGameLayer::destroyObject(GJBaseGameLayer *this, GameObject *a2) { int v4; // r7 const cocos2d::CCPoint *v5; // r0 _DWORD *result; // r0 _BYTE v7[8]; // [sp+Ch] [bp-Ch] BYREF if ( (*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2) == 30 && GameObject::shouldShowPickupEffects(a2) ) { v4 = *((_DWORD *)a2 + 378); if ( v4 <= 0 ) { GameObject::spawnDefaultPickupParticle(a2, this); } else { v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v5); GJBaseGameLayer::spawnParticleTrigger(this, v4, (int)v7, 0.0, 1.0); } } GameObject::playDestroyObjectAnim(a2, this); GameObject::destroyObject(a2); result = (_DWORD *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 900))(a2); if ( result == (int *)((char *)&dword_14 + 1) ) return GJBaseGameLayer::gameEventTriggered((int **)this, 61, 0, 0); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source