// // cocos2d::CCDrawNode::init from 0xd4bd00 to 0xd4be18 (280 bytes) // // 3 xrefs: // > HardStreak::init @ 0x959a04 // > @ 0xd3498 // > @ 0x1516a20 // // This function is hookable on this platform (idp: arm, 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 13:07:38 +0000 // __int64 __fastcall cocos2d::CCDrawNode::init(cocos2d::CCShaderCache **this) { cocos2d::CCShaderCache *v2; // x0 void (__fastcall *v3)(cocos2d::CCShaderCache **, __int64); // x21 cocos2d::CCShaderCache *v4; // x0 __int64 v5; // x0 cocos2d::CCNotificationCenter *v6; // x0 int v7; // w0 v2 = *this; *((_DWORD *)this + 93) = 771; *((_DWORD *)this + 92) = 1; v3 = *((void (__fastcall **)(cocos2d::CCShaderCache **, __int64))v2 + 83); v4 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v2); v5 = cocos2d::CCShaderCache::programForKey(v4, "ShaderPositionColor"); v3(this, v5); cocos2d::CCDrawNode::ensureCapacity(this, 0x200u); glGenBuffers(); glBindBuffer(); glBufferData(); glEnableVertexAttribArray(); glVertexAttribPointer(); glEnableVertexAttribArray(); glVertexAttribPointer(); v6 = (cocos2d::CCNotificationCenter *)glBindBuffer(); *((_BYTE *)this + 376) = 1; v7 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v6); cocos2d::CCNotificationCenter::addObserver( v7, (int)this, (int)cocos2d::CCDrawNode::listenBackToForeground, 0, "event_come_to_foreground"); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source