// // cocos2d::CCDrawNode::init from 0x1006ed970 to 0x1006edac6 (342 bytes) // // 2 xrefs: // > HardStreak::init @ 0x10006408d // > @ 0x100b95158 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:35:50 +0000 // char __fastcall cocos2d::CCDrawNode::init(__int64 a1) { __int64 v1; // rax __int64 v2; // rax int v3; // eax unsigned int v4; // ecx __int64 v5; // rax *(_QWORD *)(a1 + 368) = 0x30300000001LL; v1 = cocos2d::CCShaderCache::sharedShaderCache(); v2 = cocos2d::CCShaderCache::programForKey(v1, "ShaderPositionColor"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v2); v3 = 512; v4 = *(_DWORD *)(a1 + 348); if ( *(_DWORD *)(a1 + 352) + 512 > v4 ) { if ( v4 >= 0x201 ) v3 = *(_DWORD *)(a1 + 348); v5 = v4 + v3; *(_DWORD *)(a1 + 348) = v5; *(_QWORD *)(a1 + 360) = realloc(*(void **)(a1 + 360), 20 * v5); } glGenVertexArraysAPPLE(1, (GLuint *)(a1 + 340)); cocos2d::ccGLBindVAO(*(_DWORD *)(a1 + 340)); glGenBuffers(1, (GLuint *)(a1 + 344)); glBindBuffer(0x8892u, *(_DWORD *)(a1 + 344)); glBufferData(0x8892u, 20LL * *(unsigned int *)(a1 + 348), *(const GLvoid **)(a1 + 360), 0x88E0u); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 2, 0x1406u, 0, 20, nullptr); glEnableVertexAttribArray(1u); glVertexAttribPointer(1u, 4, 0x1401u, 1u, 20, (const GLvoid *)8); glBindBuffer(0x8892u, 0); cocos2d::ccGLBindVAO(0); *(_BYTE *)(a1 + 376) = 1; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source