// // cocos2d::CCNotificationCenter::removeObserver from 0xb1dee0 to 0xb1dfb0 (208 bytes) // // 7 xrefs: // > ShaderLayer::~ShaderLayer @ 0x9f7e18 // > cocos2d::CCDrawNode::~CCDrawNode @ 0xad8f3c // > cocos2d::CCRenderTexture::~CCRenderTexture @ 0xaf931c // > cocos2d::CCRenderTexture::~CCRenderTexture @ 0xaf9330 // > cocos2d::CCParticleSystemQuad::~CCParticleSystemQuad @ 0xb02fb8 // > cocos2d::CCTextureAtlas::~CCTextureAtlas @ 0xb32e08 // > @ 0xa77c0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void cocos2d::CCNotificationCenter::removeObserver( cocos2d::CCNotificationCenter *a1, cocos2d::CCObject *a2, const char *a3) { cocos2d::CCNotificationCenter_vtbl *v3; // x3 bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // x4 cocos2d::_ccArray **v5; // x19 __int64 v6; // x20 char *v7; // x21 cocos2d::_ccArray *v8; // x20 const char *v12; // x0 bool v13; // w3 v3 = a1[1].__vftable; if ( v3 ) { canEncode = v3->canEncode; if ( *(_DWORD *)canEncode ) { v5 = *((cocos2d::_ccArray ***)canEncode + 2); v6 = 8LL * *(unsigned int *)canEncode - 8; v7 = (char *)v5 + v6; if ( v5 <= (cocos2d::_ccArray **)((char *)v5 + v6) ) { v8 = *v5; if ( *v5 ) { while ( 1 ) { v12 = (const char *)(*(__int64 (__fastcall **)(cocos2d::_ccArray *))(*(_QWORD *)&v8->num + 96LL))(v8); if ( !strcmp(v12, a3) && a2 == (cocos2d::CCObject *)(*(__int64 (__fastcall **)(cocos2d::_ccArray *))(*(_QWORD *)&v8->num + 80LL))(v8) ) { break; } if ( v7 >= (char *)++v5 ) { v8 = *v5; if ( *v5 ) continue; } return; } cocos2d::CCArray::removeObject( (cocos2d::CCArray *)a1[1].__vftable, v8, (cocos2d::CCObject *)((char *)&dword_0 + 1), v13); } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source