// // GameManager::reloadAllStep2 from 0x10038c4d0 to 0x10038c5da (266 bytes) // // 2 xrefs: // > GameManager::switchScreenMode @ 0x10038c3e5 // > GameManager::reloadAll @ 0x10038c494 // // 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 // void __fastcall GameManager::reloadAllStep2(GameManager *a1) { cocos2d::CCDirector *v2; // rax CCContentManager *v3; // rax CCAnimateFrameCache *v4; // rax cocos2d::CCFileUtils *v5; // rdi cocos2d::CCActionManager *m_pActionManager; // r14 unsigned int v7; // r15d unsigned int v8; // eax int v9; // ecx int v10; // r8d int v11; // r9d cocos2d::CCAction *v12; // rax if ( a1->m_reloadTextures ) { v2 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::removeStatsLabel(v2); v3 = CCContentManager::sharedManager(); CCContentManager::clearCache(v3); cocos2d::CCTextureCache::purgeSharedTextureCache(); cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(); cocos2d::CCLabelBMFont::purgeCachedData(); BitmapFontCache::purgeSharedFontCache(); v4 = CCAnimateFrameCache::sharedSpriteFrameCache(); CCAnimateFrameCache::removeSpriteFrames(v4); cocos2d::CCFileUtils::purgeFileUtils(); v5 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(cocos2d::CCFileUtils *, const char *))v5->getSearchPaths)(v5, "Resources"); ObjectManager::purgeObjectManager((ObjectManager *)v5); *(_QWORD *)&a1->m_loadedBgID = 0; a1->m_loadedMG = 0; sub_100054D90((__int64)&a1->m_iconLoadCounts, (_QWORD *)a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_); a1->m_iconLoadCounts.__tree_.__begin_node_ = &a1->m_iconLoadCounts.__tree_.__pair1_.__value_; *(_OWORD *)&a1->m_iconLoadCounts.__tree_.__pair1_.__value_.__left_ = 0; a1->m_loadedDeathEffect = 0; } m_pActionManager = a1->m_pActionManager; v7 = (unsigned int)cocos2d::CCDelayTime::create(0.0); v8 = (unsigned int)cocos2d::CCCallFunc::create( a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GameManager::reloadAllStep3); v12 = (cocos2d::CCAction *)sub_1003B5760(v7, v8, 0, v9, v10, v11); cocos2d::CCActionManager::addAction(m_pActionManager, v12, a1, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source