// // PlayLayer::loadDefaultColors from 0x31aed0 to 0x31b030 (352 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x31c1be // > PlayLayer::resetLevel @ 0x31fafe // // 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 PlayLayer::loadDefaultColors(PlayLayer *a1) { cocos2d::CCArray *AllColorActions; // r10 unsigned int i; // r7 int v4; // r0 unsigned int v5; // r7 cocos2d::CCArray *v6; // r10 int v7; // r0 cocos2d::CCArray *v8; // r11 unsigned int j; // r7 unsigned int v10; // [sp+20h] [bp-44h] int v11; // [sp+24h] [bp-40h] unsigned int v12[2]; // [sp+30h] [bp-34h] BYREF unsigned int v13[2]; // [sp+38h] [bp-2Ch] BYREF _DWORD v14[7]; // [sp+40h] [bp-24h] BYREF std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::_Hashtable( v14, 10); AllColorActions = GJEffectManager::getAllColorActions(a1->m_effectManager); for ( i = 0; i < cocos2d::CCArray::count(AllColorActions); ++i ) { v4 = cocos2d::CCArray::objectAtIndex(AllColorActions, i); if ( *(_BYTE *)(v4 + 80) ) { v13[0] = *(_DWORD *)(v4 + 88); sub_31AE80((int)v12, v14, v13); } } GJEffectManager::reset(a1->m_effectManager); v5 = 0; v6 = GJEffectManager::getAllColorActions(a1->m_levelSettings->m_effectManager); while ( v5 < cocos2d::CCArray::count(v6) ) { v7 = cocos2d::CCArray::objectAtIndex(v6, v5); ((void (__fastcall *)(PlayLayer *, int, _DWORD, _DWORD, _DWORD, _DWORD, int, _DWORD, _DWORD, _DWORD, _DWORD, _DWORD))a1->updateColor)( a1, v7 + 68, 0, *(_DWORD *)(v7 + 88), *(unsigned __int8 *)(v7 + 80), *(_DWORD *)(v7 + 92), v7 + 100, *(_DWORD *)(v7 + 116), *(unsigned __int8 *)(v7 + 121), 0, *(_DWORD *)(v7 + 124), *(_DWORD *)(v7 + 128)); ++v5; } v8 = GJEffectManager::getAllColorActions(a1->m_effectManager); for ( j = 0; j < cocos2d::CCArray::count(v8); ++j ) { v11 = cocos2d::CCArray::objectAtIndex(v8, j); v10 = *(_DWORD *)(v11 + 88); if ( *(_BYTE *)(v11 + 80) != (sub_30F05C(v14, v10) != nullptr) ) { v12[0] = v10; sub_31AE80((int)v13, &a1->m_blendingColors._M_h._M_buckets, v12); } } GJEffectManager::updateEffects(a1->m_effectManager, 0.0); GJEffectManager::calculateBaseActiveColors(a1->m_effectManager); GJEffectManager::processInheritedColors(a1->m_effectManager); std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::~_Hashtable((int)v14); }
GD Web Decomp Icon

GD Web Decomp

Raw Source