// // cocos2d::CCDirector::purgeDirector from 0x1800c26a0 to 0x1800c27d3 (307 bytes) // // 3 xrefs: // > cocos2d::CCDisplayLinkDirector::mainLoop @ 0x1800c22d8 // > @ 0x18014cf68 // > @ 0x1801c3528 // // 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:22:25 +0000 // void __fastcall cocos2d::CCDirector::purgeDirector(cocos2d::CCTouchDispatcher **this) { cocos2d::CCScheduler *v2; // rax __int64 v3; // rcx cocos2d::CCArray *v4; // rcx cocos2d::CCObject *v5; // rcx cocos2d::CCObject *v6; // rcx cocos2d::CCObject *v7; // rcx cocos2d *v8; // rcx cocos2d *v9; // rcx v2 = (cocos2d::CCScheduler *)(*((__int64 (__fastcall **)(cocos2d::CCTouchDispatcher **))*this + 14))(this); cocos2d::CCScheduler::unscheduleAll(v2); cocos2d::CCTouchDispatcher::removeAllDelegates(*(this + 15)); v3 = (__int64)*(this + 34); if ( v3 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 720LL))(v3); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 712LL))(*(this + 34)); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 728LL))(*(this + 34)); cocos2d::CCObject::release(*(this + 34)); } v4 = *(this + 37); *(this + 34) = nullptr; *(this + 35) = nullptr; *(this + 12) = nullptr; cocos2d::CCArray::removeAllObjects(v4); (*((void (__fastcall **)(cocos2d::CCTouchDispatcher **))*this + 11))(this); v5 = *(this + 29); if ( v5 ) { cocos2d::CCObject::release(v5); *(this + 29) = nullptr; } v6 = *(this + 30); if ( v6 ) { cocos2d::CCObject::release(v6); *(this + 30) = nullptr; } v7 = *(this + 31); if ( v7 ) { cocos2d::CCObject::release(v7); *(this + 31) = nullptr; } cocos2d::CCLabelBMFont::purgeCachedData(); cocos2d::ccDrawFree(v8); cocos2d::CCAnimationCache::purgeSharedAnimationCache(); cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(); cocos2d::CCTextureCache::purgeSharedTextureCache(); cocos2d::CCShaderCache::purgeSharedShaderCache(); cocos2d::CCFileUtils::purgeFileUtils(); cocos2d::CCConfiguration::purgeConfiguration(); cocos2d::CCUserDefault::purgeSharedUserDefault(); cocos2d::CCNotificationCenter::purgeNotificationCenter(); cocos2d::ccGLInvalidateStateCache(v9); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 24) + 8LL))(*(this + 24)); *(this + 24) = nullptr; cocos2d::CCObject::release((cocos2d::CCObject *)this); }