// // cocos2d::CCGridBase::initWithSize from 0x7ce3f8 to 0x7ce492 (154 bytes) // // 4 xrefs: // > cocos2d::CCGridBase::create @ 0x7ce4c2 // > cocos2d::CCGridBase::initWithSize @ 0x7ce56a // > cocos2d::CCGrid3D::create @ 0x7ce77c // > cocos2d::CCTiledGrid3D::create @ 0x7ce8c4 // // 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:33 +0000 // int __fastcall cocos2d::CCGridBase::initWithSize( cocos2d::CCGridBase *this, const cocos2d::CCSize *a2, cocos2d::CCTexture2D *a3, bool a4) { float *v7; // r0 int v8; // r1 float v9; // s14 cocos2d::CCGrabber *v10; // r6 cocos2d::CCTexture2D *v11; // r1 cocos2d::CCShaderCache *v12; // r0 cocos2d::CCShaderCache *v13; // r0 int v14; // r0 int v15; // r3 float v17[2]; // [sp+4h] [bp-10h] BYREF v7 = (float *)((char *)this + 60); *((_BYTE *)v7 - 8) = 0; *(v7 - 1) = 0.0; cocos2d::CCSize::operator=(v7, (float *)a2); *((_DWORD *)this + 17) = a3; if ( a3 ) cocos2d::CCObject::retain((int)a3); v8 = *((_DWORD *)this + 17); *((_BYTE *)this + 84) = a4; (*(void (__fastcall **)(float *))(*(_DWORD *)v8 + 72))(v17); v9 = *((float *)this + 16); *((float *)this + 18) = v17[0] / *((float *)this + 15); *((float *)this + 19) = v17[1] / v9; v10 = (cocos2d::CCGrabber *)operator new(0x4Cu); cocos2d::CCGrabber::CCGrabber(v10); v11 = *((cocos2d::CCTexture2D **)this + 17); *((_DWORD *)this + 20) = v10; v12 = (cocos2d::CCShaderCache *)cocos2d::CCGrabber::grab((GLint *)v10, v11); v13 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v12); v14 = cocos2d::CCShaderCache::programForKey(v13, "ShaderPositionTexture"); v15 = *(_DWORD *)this; *((_DWORD *)this + 22) = v14; (*(void (__fastcall **)(cocos2d::CCGridBase *))(v15 + 48))(this); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source