// // cocos2d::extension::WebSocket::close from 0xaae4ac to 0xaae518 (108 bytes) // // 2 xrefs: // > cocos2d::extension::WebSocket::~WebSocket @ 0xaae54c // > @ 0x519a8 // // 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 // __int64 __fastcall cocos2d::extension::WebSocket::close(cocos2d::CCObject **this) { cocos2d::CCDirector *v2; // x0 cocos2d::CCScheduler *v3; // x0 __int64 result; // x0 cocos2d::extension::WsThreadHelper *v5; // x0 v2 = cocos2d::CCDirector::sharedDirector(); v3 = v2->getScheduler(v2); cocos2d::CCScheduler::unscheduleAllForTarget(v3, *(this + 5)); result = (unsigned int)(*((_DWORD *)this + 2) - 2); if ( (unsigned int)result > 1 ) { v5 = (cocos2d::extension::WsThreadHelper *)*(this + 5); *((_DWORD *)this + 2) = 3; cocos2d::extension::WsThreadHelper::joinSubThread(v5); return ((__int64 (__fastcall *)(_QWORD, cocos2d::CCObject **))(*(this + 8))->acceptVisitor)(*(this + 8), this); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source