// // cocos2d::CCDrawNode::ensureCapacity from 0x7cc0d2 to 0x7cc102 (48 bytes) // // 4 xrefs: // > cocos2d::CCDrawNode::init @ 0x7cc13a // > sub_7CC1E0 @ 0x7cc20c // > cocos2d::CCDrawNode::drawDot @ 0x7cc89c // > cocos2d::CCDrawNode::drawPolygon @ 0x7cd366 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:00:31 +0000 // void *__fastcall cocos2d::CCDrawNode::ensureCapacity(void *this, unsigned int a2) { _DWORD *v2; // r4 unsigned int v3; // r3 int v4; // r3 v2 = this; v3 = *((_DWORD *)this + 72); if ( *((_DWORD *)this + 73) + a2 > v3 ) { if ( a2 < v3 ) v4 = 2 * v3; else v4 = v3 + a2; *((_DWORD *)this + 72) = v4; this = realloc(*((void **)this + 74), 20 * v4); v2[74] = this; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source