// // cocos2d::CCMouseDispatcher::dispatchRightClick from 0x180062f00 to 0x18006306a (362 bytes) // // 5 xrefs: // > cocos2d::CCEGLViewProtocol::handleRightClick @ 0x18006db8c // > @ 0x180142abc // > @ 0x180142b3c // > @ 0x18014cf68 // > @ 0x1801bd7d4 // // This function is hookable on this platform (idp: pc, 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 11:21:51 +0000 // char __fastcall cocos2d::CCMouseDispatcher::dispatchRightClick(cocos2d::CCMouseDispatcher *this, float a2, float a3) { cocos2d::CCDirector *v4; // rax cocos2d::CCArray *v5; // rcx __int64 v6; // rdi bool v7; // si unsigned int i; // ebp int v9; // eax cocos2d::CCNotificationObserver *v10; // rax struct cocos2d::CCObject *Target; // rax Concurrency::details::_NonReentrantLock *v12; // rcx unsigned int v13; // esi Concurrency::details::_NonReentrantLock *v14; // rcx struct cocos2d::CCObject *v15; // rax v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::noteInput(v4); v5 = *((cocos2d::CCArray **)this + 7); *((_BYTE *)this + 64) = 1; v6 = 0; if ( (unsigned int)cocos2d::CCArray::count(v5) ) { v7 = 0; for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)); ++i ) { v9 = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 7)); v10 = cocos2d::CCArray::stringAtIndex(*((cocos2d::CCArray **)this + 7), v9 + ~i); if ( !v10 ) break; if ( v7 ) break; Target = cocos2d::CCNotificationObserver::getTarget(v10); v7 = (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)Target + 24LL))(Target) != 0; } } *((_BYTE *)this + 64) = 0; if ( *((_BYTE *)this + 66) ) { v12 = *((Concurrency::details::_NonReentrantLock **)this + 10); v13 = 0; for ( *((_BYTE *)this + 66) = 0; v13 < *(_DWORD *)v12; ++v13 ) { cocos2d::CCMouseDispatcher::forceRemoveDelegate( this, *(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v12 + 2) + 8LL * v13)); v12 = *((Concurrency::details::_NonReentrantLock **)this + 10); } Concurrency::details::_NonReentrantLock::_Release(v12); } if ( *((_BYTE *)this + 65) ) { v14 = *((Concurrency::details::_NonReentrantLock **)this + 9); *((_BYTE *)this + 65) = 0; if ( *(_DWORD *)v14 ) { do { v15 = cocos2d::CCMouseHandler::handlerWithDelegate(*(struct cocos2d::CCMouseDelegate **)(*((_QWORD *)v14 + 2) + 8 * v6)); if ( v15 ) cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 7), v15); v14 = *((Concurrency::details::_NonReentrantLock **)this + 9); v6 = (unsigned int)(v6 + 1); } while ( (unsigned int)v6 < *(_DWORD *)v14 ); } Concurrency::details::_NonReentrantLock::_Release(v14); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source