// // GJBaseGameLayer::refreshKeyframeAnims from 0x10011d920 to 0x10011db02 (482 bytes) // // 2 xrefs: // > LevelEditorLayer::init @ 0x1000dc0f3 // > GJBaseGameLayer::updateSpecialGroupData @ 0x100117401 // // 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 GJBaseGameLayer::refreshKeyframeAnims(GJBaseGameLayer *a1) { cocos2d::CCArray *m_objects; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r12 unsigned __int64 v4; // r13 cocos2d::CCObject *v5; // r15 intptr_t m_uID; // rsi cocos2d::CCObject *v7; // rax cocos2d::CCObject *v8; // r14 cocos2d::CCArray *v9; // r15 unsigned int v10; // r12d __int64 v11; // rax cocos2d::CCObject *v12; // r13 unsigned int v13; // r14d __int64 v14; // rax cocos2d::CCDictionary *v15; // [rsp+0h] [rbp-30h] cocos2d::CCDictionary::removeAllObjects(a1->m_keyframeGroups); a1->m_keyframeGroup = 0; v15 = cocos2d::CCDictionary::create(); m_objects = a1->m_objects; if ( m_objects ) { data = m_objects->data; if ( data->num ) { arr = data->arr; v4 = (unsigned __int64)&arr[data->num - 1]; do { v5 = *arr; if ( !*arr ) break; if ( v5[18].m_uReference == 3032 ) { m_uID = (int)v5[33].m_uID; v7 = cocos2d::CCDictionary::objectForKey(v15, m_uID); if ( !v7 ) { v8 = (cocos2d::CCObject *)sub_10071F9E0(v15, m_uID); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v8->setTag)(v8, v5[33].m_uID); cocos2d::CCDictionary::setObject(v15, v8, (int)v5[33].m_uID); v7 = v8; } sub_10071FCD0(v7, v5); } ++arr; } while ( (unsigned __int64)arr <= v4 ); } } v9 = cocos2d::CCDictionary::allKeys(v15); qsort(v9->data->arr, v9->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_10010DEB0); if ( (unsigned int)sub_100720070(v9) ) { v10 = 0; do { v11 = sub_1007200C0(v9, v10); v12 = cocos2d::CCDictionary::objectForKey(v15, *(int *)(v11 + 56)); qsort( v12[1].~CCObject_0, (size_t)v12[1].copyWithZone, 8u, (int (__cdecl *)(const void *, const void *))sub_10010DE90); ((void (__fastcall *)(cocos2d::CCObject *, _QWORD))v12->setTag)(v12, (unsigned int)a1->m_keyframeGroup); cocos2d::CCDictionary::setObject(a1->m_keyframeGroups, v12, a1->m_keyframeGroup); if ( (unsigned int)sub_100720070(v12) ) { v13 = 0; do { v14 = sub_1007200C0(v12, v13); *(_DWORD *)(v14 + 1856) = a1->m_keyframeGroup; *(_DWORD *)(v14 + 1860) = v13++; } while ( v13 < (unsigned int)sub_100720070(v12) ); } ++a1->m_keyframeGroup; ++v10; } while ( v10 < (unsigned int)sub_100720070(v9) ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source