// // GameManager::reloadAllStep2 from 0x100376f40 to 0x10037704a (266 bytes) // // 2 xrefs: // > GameManager::switchScreenMode @ 0x100376e55 // > GameManager::reloadAll @ 0x100376f04 // // 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 12:29:04 +0000 // __int64 __fastcall GameManager::reloadAllStep2(__int64 a1, __int64 a2) { __int64 v3; // rdi __int64 v4; // rdi __int64 v5; // rdi __int64 v6; // rdi __int64 v7; // r14 int v8; // r15d int v9; // eax int v10; // ecx int v11; // r8d int v12; // r9d __int64 v13; // rax if ( *(_BYTE *)(a1 + 420) == 1 ) { v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::removeStatsLabel(v3); v4 = CCContentManager::sharedManager(v3, a2); CCContentManager::clearCache(v4); cocos2d::CCTextureCache::purgeSharedTextureCache(v4); cocos2d::CCSpriteFrameCache::purgeSharedSpriteFrameCache(); cocos2d::CCLabelBMFont::purgeCachedData(v4); BitmapFontCache::purgeSharedFontCache(); v5 = CCAnimateFrameCache::sharedSpriteFrameCache(v4); CCAnimateFrameCache::removeSpriteFrames(v5); cocos2d::CCFileUtils::purgeFileUtils(v5); v6 = cocos2d::CCFileUtils::sharedFileUtils(v5, a2); (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v6 + 120LL))(v6, "Resources"); ObjectManager::purgeObjectManager(v6); *(_QWORD *)(a1 + 980) = 0; *(_DWORD *)(a1 + 988) = 0; sub_10001ADF0(a1 + 1160, *(_QWORD **)(a1 + 1168)); *(_QWORD *)(a1 + 1160) = a1 + 1168; *(_OWORD *)(a1 + 1168) = 0; *(_DWORD *)(a1 + 996) = 0; } v7 = *(_QWORD *)(a1 + 264); v8 = cocos2d::CCDelayTime::create(0.0); v9 = cocos2d::CCCallFunc::create(a1, GameManager::reloadAllStep3, 0); v13 = sub_10039EB60(v8, v9, 0, v10, v11, v12); return cocos2d::CCActionManager::addAction(v7, v13, a1, 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source