// // GameManager::reloadAllStep2 from 0x140287870 to 0x1402879cd (349 bytes) // // 2 xrefs: // > GameManager::reloadAll @ 0x140287819 // > @ 0x14091d174 // // 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:29:02 +0000 // void __fastcall GameManager::reloadAllStep2(__int64 a1) { cocos2d::CCDirector *v2; // rax CCContentManager *v3; // rax cocos2d::CCDictionary **v4; // rbx __int64 v5; // rcx __int64 v6; // rax cocos2d *v7; // rcx cocos2d *v8; // rcx cocos2d::CCActionManager *v9; // rdi __int64 v10; // rbx struct cocos2d::CCFiniteTimeAction *v11; // rax struct cocos2d::CCAction *v12; // rax if ( *(_BYTE *)(a1 + 428) ) { v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::removeStatsLabel(v2); v3 = (CCContentManager *)CCContentManager::sharedManager(); CCContentManager::clearCache(v3); cocos2d::CCTextureCache::purgeSharedTextureCache(); cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(); cocos2d::CCLabelBMFont::purgeCachedData(); if ( qword_14090BF50 ) { cocos2d::CCObject::release((cocos2d::CCObject *)qword_14090BF50); qword_14090BF50 = 0; } v4 = (cocos2d::CCDictionary **)CCAnimateFrameCache::sharedSpriteFrameCache(); cocos2d::CCDictionary::removeAllObjects(v4[7]); cocos2d::CCDictionary::removeAllObjects(v4[8]); cocos2d::CCDictionary::removeAllObjects(v4[9]); cocos2d::CCFileUtils::purgeFileUtils(); v6 = cocos2d::CCFileUtils::sharedFileUtils(v5); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 112LL))(v6, "Resources"); if ( qword_14090BF78 ) { cocos2d::CCObject::release((cocos2d::CCObject *)qword_14090BF78); qword_14090BF78 = 0; } *(_QWORD *)(a1 + 1012) = 0; *(_DWORD *)(a1 + 1020) = 0; sub_14016EDD0((_QWORD *)(a1 + 1184)); *(_DWORD *)(a1 + 1028) = 0; if ( *(_BYTE *)(a1 + 424) ) { cocos2d::ccDrawFree(v7); cocos2d::CCShaderCache::purgeSharedShaderCache(); cocos2d::CCAnimationCache::purgeSharedAnimationCache(); cocos2d::ccGLInvalidateStateCache(v8); } } v9 = *(cocos2d::CCActionManager **)(a1 + 264); v10 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep3); v11 = cocos2d::CCDelayTime::create(0.0); v12 = cocos2d::CCSequence::create(v11, v10, 0); cocos2d::CCActionManager::addAction(v9, v12, (struct cocos2d::CCNode *)a1, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source