// // cocos2d::CCGridBase::initWithSize_1 from 0x1004e35c0 to 0x1004e368f (207 bytes) // // 3 xrefs: // > cocos2d::CCGridBase::create_1 @ 0x1004e356a // > cocos2d::CCGrid3D::create_1 @ 0x1004e3cac // > cocos2d::CCTiledGrid3D::create_1 @ 0x1004e492c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall cocos2d::CCGridBase::initWithSize_1(cocos2d::CCGridBase *a1, const cocos2d::CCSize *a2) { unsigned int v2; // r12d unsigned int v3; // r13d void *v4; // r15 cocos2d::CCTexture2D *v5; // r14 cocos2d::CCSize v7[6]; // [rsp+10h] [rbp-30h] BYREF cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSizeInPixels((cocos2d::CCDirector *)v7); v2 = sub_1005772B0((unsigned int)(int)v7[0].width); v3 = sub_1005772B0((unsigned int)(int)v7[0].height); v4 = calloc((int)(4 * v2 * v3), 1u); if ( v4 ) { v5 = (cocos2d::CCTexture2D *)operator new(0x68u); sub_100477FC0((__int64)v5); cocos2d::CCTexture2D::initWithData(v5, v4, kCCTexture2DPixelFormat_RGBA8888, v2, v3, v7); free(v4); cocos2d::CCGridBase::initWithSize(a1, a2, v5, 0); a1 = (cocos2d::CCGridBase *)v5; } cocos2d::CCObject::release(a1); return v4 != nullptr; }
GD Web Decomp Icon

GD Web Decomp

Raw Source