// // cocos2d::CCDirector::purgeDirector from 0xd49d8c to 0xd49ea0 (276 bytes) // // 2 xrefs: // > cocos2d::CCDisplayLinkDirector::mainLoop @ 0xd4a308 // > @ 0xf9790 // // This function is hookable on this platform (idp: arm, 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 13:07:37 +0000 // _DWORD *__fastcall cocos2d::CCDirector::purgeDirector(cocos2d::CCTouchDispatcher **this) { cocos2d::CCScheduler *v2; // x0 __int64 v3; // x0 cocos2d::CCArray *v4; // x0 _DWORD *v5; // x0 _DWORD *v6; // x0 cocos2d::CCLabelBMFont *v7; // x0 cocos2d *v8; // x0 cocos2d::CCAnimationCache *v9; // x0 cocos2d::CCSpriteFrameCache *v10; // x0 cocos2d::CCTextureCache *v11; // x0 cocos2d::CCShaderCache *v12; // x0 cocos2d::CCFileUtils *v13; // x0 cocos2d::CCConfiguration *v14; // x0 cocos2d::CCUserDefault *v15; // x0 cocos2d::CCNotificationCenter *v16; // x0 cocos2d *v17; // x0 v2 = (cocos2d::CCScheduler *)(*((__int64 (__fastcall **)(cocos2d::CCTouchDispatcher **))*this + 16))(this); cocos2d::CCScheduler::unscheduleAll(v2); cocos2d::CCTouchDispatcher::removeAllDelegates(*(this + 15)); v3 = (__int64)*(this + 34); if ( v3 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 728LL))(v3); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 720LL))(*(this + 34)); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 34) + 736LL))(*(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 + 13))(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 ) { v7 = (cocos2d::CCLabelBMFont *)cocos2d::CCObject::release(v7); *(this + 31) = nullptr; } v8 = (cocos2d *)cocos2d::CCLabelBMFont::purgeCachedData(v7); v9 = (cocos2d::CCAnimationCache *)cocos2d::ccDrawFree(v8); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCAnimationCache::purgeSharedAnimationCache(v9); v11 = (cocos2d::CCTextureCache *)cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(v10); v12 = (cocos2d::CCShaderCache *)cocos2d::CCTextureCache::purgeSharedTextureCache(v11); v13 = (cocos2d::CCFileUtils *)cocos2d::CCShaderCache::purgeSharedShaderCache(v12); v14 = (cocos2d::CCConfiguration *)cocos2d::CCFileUtils::purgeFileUtils(v13); v15 = (cocos2d::CCUserDefault *)cocos2d::CCConfiguration::purgeConfiguration(v14); v16 = (cocos2d::CCNotificationCenter *)cocos2d::CCUserDefault::purgeSharedUserDefault(v15); v17 = (cocos2d *)cocos2d::CCNotificationCenter::purgeNotificationCenter(v16); cocos2d::ccGLInvalidateStateCache(v17); (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 24) + 16LL))(*(this + 24)); *(this + 24) = nullptr; return cocos2d::CCObject::release(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source