// // GJBaseGameLayer::resetGradientLayers from 0x140220fa0 to 0x140221022 (130 bytes) // // 6 xrefs: // > GJBaseGameLayer::triggerGradientCommand @ 0x14021f777 // > GJBaseGameLayer::resetLevelVariables @ 0x14023b552 // > LevelEditorLayer::updateGameObjects @ 0x1402dc926 // > @ 0x14067fca8 // > @ 0x14067fcb8 // > @ 0x1406cd4c4 // // 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 GJBaseGameLayer::resetGradientLayers(GJBaseGameLayer *a1) { cocos2d::CCDictionary *m_gradientLayers; // rdi cocos2d::CCDictElement *m_pElements; // rdi cocos2d::CCDictElement *i; // rbx cocos2d::CCObject *m_pObject; // rdi cocos2d::CCObject_vtbl *v5; // rax m_gradientLayers = a1->m_gradientLayers; if ( m_gradientLayers ) { m_pElements = m_gradientLayers->m_pElements; if ( m_pElements ) { for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next ) { m_pObject = m_pElements->m_pObject; m_pObject->__vftable[7].copyWithZone(m_pObject, nullptr); v5 = m_pObject->__vftable; *(_QWORD *)&m_pObject[10].m_uAutoReleaseCount = 0; LOBYTE(m_pObject[10].m_uIndexInArray) = 0; ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v5[4].update)(m_pObject, 0); m_pElements = i; if ( !i ) break; } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source