// // cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile from 0xb1b6c4 to 0xb1b8c4 (512 bytes) // // 12 xrefs: // > GauntletSelectLayer::onExit @ 0x91d47c // > GJShopLayer::onExit @ 0x92a9e8 // > SecretLayer3::onExit @ 0x93a888 // > SecretLayer2::onExit @ 0x93abac // > SecretLayer4::onExit @ 0x94b654 // > WorldSelectLayer::onExit @ 0x95e2c4 // > LevelAreaLayer::onExit @ 0xa314c8 // > LevelAreaInnerLayer::onExit @ 0xa31518 // > SecretRewardsLayer::onExit @ 0xa6b0b8 // > GJPathsLayer::onExit @ 0xa6cef8 // > SecretLayer5::onExit @ 0xa8ff08 // > @ 0x4a730 // // 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 cocos2d::CCSpriteFrameCache::removeSpriteFramesFromFile(cocos2d::CCSpriteFrameCache *a1, const char *a2) { cocos2d::CCFileUtils *v4; // x0 cocos2d::CCDictionary *v5; // x23 __int64 v6; // x25 _QWORD *v7; // x24 char *v8; // x0 __int64 v9; // x21 __int64 v10; // x0 __int64 v11; // x1 void *v12; // x24 void *v13; // x0 int *p_m_uOrderOfArrival; // x0 unsigned int *v15; // x1 int v16; // w2 unsigned int *p_m_eDictType; // x1 cocos2d::CCDictionary::CCDictType m_eDictType; // w2 unsigned int *v19; // x1 int v20; // w2 cocos2d::CCDictionary *v21; // [xsp+68h] [xbp+68h] BYREF _DWORD *v22; // [xsp+70h] [xbp+70h] BYREF v4 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(cocos2d::CCDictionary **__return_ptr, cocos2d::CCFileUtils *, const char *, _QWORD))v4->createCCArrayWithContentsOfFile)( &v21, v4, a2, 0); v5 = cocos2d::CCDictionary::createWithContentsOfFileThreadSafe((const char *)v21); cocos2d::CCSpriteFrameCache::removeSpriteFramesFromDictionary(a1, v5); v6 = *(_QWORD *)&a1[1].m_nTag; sub_D153B8((int)&v22, (char *)a2); v7 = std::_Rb_tree,std::less,std::allocator>::find( v6, (const void **)&v22); v8 = (char *)(v22 - 6); if ( v22 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v15 = v22 - 2; do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(v22 - 2); *(v22 - 2) = v16 - 1; } if ( v16 <= 0 ) operator delete(v8); } v9 = *(_QWORD *)&a1[1].m_nTag; if ( (_QWORD *)(v9 + 8) != v7 ) { v10 = sub_CFAF34(v7, v9 + 8); v11 = *(_QWORD *)(v10 + 32); v12 = (void *)v10; v13 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v11 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v20 - 1; } if ( v20 <= 0 ) operator delete(v13); } operator delete(v12); --*(_QWORD *)(v9 + 40); } cocos2d::CCObject::release(v5); p_m_uOrderOfArrival = &v21[-1].m_uOrderOfArrival; if ( &v21[-1].m_uOrderOfArrival != (int *)&qword_124B6B0 ) { if ( &pthread_create ) { p_m_eDictType = (unsigned int *)&v21[-1].m_eDictType; do m_eDictType = __ldaxr(p_m_eDictType); while ( __stlxr(m_eDictType - 1, p_m_eDictType) ); } else { m_eDictType = v21[-1].m_eDictType; v21[-1].m_eDictType = m_eDictType - 1; } if ( (int)m_eDictType <= (int)kCCDictUnknown ) operator delete(p_m_uOrderOfArrival); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source