// // cocos2d::CCGridBase::initWithSize from 0x180023a40 to 0x180023b3e (254 bytes) // // 5 xrefs: // > cocos2d::CCGrid3D::create @ 0x1800236ab // > cocos2d::CCGridBase::create @ 0x18002380d // > cocos2d::CCTiledGrid3D::create @ 0x18002394b // > @ 0x18014cf68 // > @ 0x1801b9130 // // 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 11:21:29 +0000 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCGridBase::initWithSize(cocos2d::CCGridBase *this, const struct cocos2d::CCSize *a2) { struct cocos2d::CCDirector *v4; // rax unsigned int v5; // ebp int v6; // r14d void *v7; // rsi cocos2d::CCTexture2D *v9; // rax struct cocos2d::CCTexture2D *v10; // rbx float v11; // [rsp+70h] [rbp+18h] BYREF float v12; // [rsp+74h] [rbp+1Ch] cocos2d::CCTexture2D *v13; // [rsp+78h] [rbp+20h] v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSizeInPixels(v4, &v11); v5 = sub_1800992B0((unsigned int)(int)v11); v6 = sub_1800992B0((unsigned int)(int)v12); v7 = calloc((int)(4 * v5 * v6), 1u); if ( !v7 ) { cocos2d::CCObject::release(this); return 0; } v9 = (cocos2d::CCTexture2D *)sub_1800E4AC0(0x68u); v13 = v9; if ( v9 ) v10 = (struct cocos2d::CCTexture2D *)cocos2d::CCTexture2D::CCTexture2D(v9); else v10 = nullptr; cocos2d::CCTexture2D::initWithData(v10, v7, 0, v5, v6, &v11); free(v7); if ( !v10 ) return 0; cocos2d::CCGridBase::initWithSize(this, a2, v10, 0); cocos2d::CCObject::release(v10); return 1; }