// // cocos2d::CCGridBase::initWithSize from 0xd4eca0 to 0xd4edb8 (280 bytes) // // 4 xrefs: // > cocos2d::CCGridBase::create @ 0xd4ee20 // > cocos2d::CCGrid3D::create @ 0xd4f1b4 // > cocos2d::CCTiledGrid3D::create @ 0xd4f3e0 // > @ 0x50ba8 // // 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:39 +0000 // __int64 __fastcall cocos2d::CCGridBase::initWithSize(cocos2d::CCGridBase *this, const cocos2d::CCSize *a2) { cocos2d::CCDirector *v4; // x0 unsigned __int64 v5; // x1 unsigned int POT; // w25 unsigned __int64 v7; // x1 unsigned int v8; // w26 void *v9; // x20 cocos2d::CCTexture2D *v10; // x21 float v12[2]; // [xsp+50h] [xbp+50h] BYREF v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSizeInPixels(v12, v4); POT = cocos2d::ccNextPOT((cocos2d *)(unsigned int)v12[0], v5); v8 = cocos2d::ccNextPOT((cocos2d *)(unsigned int)v12[1], v7); v9 = calloc((int)(4 * POT * v8), 1u); if ( v9 ) { v10 = (cocos2d::CCTexture2D *)operator new(0x68u); cocos2d::CCTexture2D::CCTexture2D(v10); cocos2d::CCTexture2D::initWithData(v10, v9, 0, POT, v8, v12); free(v9); cocos2d::CCGridBase::initWithSize(this, a2, v10, 0); cocos2d::CCObject::release(v10); return 1; } else { cocos2d::CCObject::release(this); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source