// // HardStreak::createDuplicate from 0x10009dbf0 to 0x10009dd3a (330 bytes) // // 1 xrefs: // > PlayerObject::createFadeOutDartStreak @ 0x100415964 // // 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 // HardStreak *__fastcall HardStreak::createDuplicate(HardStreak *a1) { HardStreak *v2; // rbx unsigned __int8 v3; // al __int64 v4; // rax cocos2d::CCArray *m_pointArray; // rax cocos2d::ccArray *data; // rax cocos2d::CCObject **arr; // r13 cocos2d::CCArray *v8; // r12 cocos2d::CCPoint v9; // xmm0_8 PointNode *v10; // rax char v12[8]; // [rsp+0h] [rbp-40h] BYREF cocos2d::CCObject **v13; // [rsp+8h] [rbp-38h] cocos2d::ccBlendFunc v14[6]; // [rsp+10h] [rbp-30h] BYREF v2 = HardStreak::create(); v14[0] = cocos2d::CCDrawNode::getBlendFunc(a1); cocos2d::CCDrawNode::setBlendFunc(v2, v14); sub_10028CC60(v14); sub_10028CC90(); *(_QWORD *)&v2->m_waveSize = *(_QWORD *)&a1->m_waveSize; v2->m_isSolid = a1->m_isSolid; v2->m_isFlipped = a1->m_isFlipped; v3 = ((__int64 (__fastcall *)(HardStreak *, cocos2d::ccBlendFunc *))a1->getOpacity)(a1, v14); ((void (__fastcall *)(HardStreak *, _QWORD))v2->setOpacity)(v2, v3); v4 = ((__int64 (__fastcall *)(HardStreak *))a1->getColor)(a1); ((void (__fastcall *)(HardStreak *, __int64))v2->setColor)(v2, v4); m_pointArray = a1->m_pointArray; if ( m_pointArray ) { data = m_pointArray->data; if ( data->num ) { arr = data->arr; v13 = &arr[data->num - 1]; do { if ( !*arr ) break; sub_10028CC60(v12); v8 = v2->m_pointArray; *(double *)&v9 = sub_10028CC60(v14); v10 = PointNode::create(v9); sub_10071FCD0(v8, v10); ++arr; } while ( arr <= v13 ); } } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source