// // cocos2d::CCNotificationCenter::observerExisted from 0xb1de28 to 0xb1dee0 (184 bytes) // // 3 xrefs: // > cocos2d::CCNotificationCenter::addObserver @ 0xb1e370 // > cocos2d::CCNotificationCenter::registerScriptObserver @ 0xb1e410 // > @ 0x5cd30 // // 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 // bool cocos2d::CCNotificationCenter::observerExisted( cocos2d::CCNotificationCenter *a1, cocos2d::CCObject *a2, const char *a3) { cocos2d::CCNotificationCenter_vtbl *v3; // x20 bool (__fastcall *canEncode)(cocos2d::CCObject *__hidden); // x0 __int64 *v5; // x19 __int64 v6; // x22 char *v7; // x21 __int64 v8; // x20 const char *v12; // x0 v3 = a1[1].__vftable; if ( !v3 ) return 0; canEncode = v3->canEncode; if ( !*(_DWORD *)canEncode ) return 0; v5 = *((__int64 **)canEncode + 2); v6 = 8LL * *(unsigned int *)canEncode - 8; v7 = (char *)v5 + v6; if ( v5 > (__int64 *)((char *)v5 + v6) ) return 0; v8 = *v5; if ( !*v5 ) return 0; while ( 1 ) { if ( a2 == (cocos2d::CCObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 80LL))(v8) ) { v12 = (const char *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8); if ( !strcmp(v12, a3) ) break; } if ( v7 >= (char *)++v5 ) { v8 = *v5; if ( *v5 ) continue; } return 0; } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source