// // cocos2d::CCGridBase::initWithSize from 0xd4ead8 to 0xd4ebdc (260 bytes) // // 5 xrefs: // > cocos2d::CCGridBase::create @ 0xd4ec58 // > cocos2d::CCGridBase::initWithSize @ 0xd4ed68 // > cocos2d::CCGrid3D::create @ 0xd4f13c // > cocos2d::CCTiledGrid3D::create @ 0xd4f368 // > @ 0x78a90 // // 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::CCTexture2D *a3, char a4) { __int64 v6; // x1 float v7; // s0 cocos2d::CCGrabber *v8; // x21 cocos2d::CCTexture2D *v9; // x1 cocos2d::CCShaderCache *v10; // x0 cocos2d::CCShaderCache *v11; // x0 __int64 v14; // [xsp+40h] [xbp+40h] BYREF *((_BYTE *)this + 56) = 0; *((_DWORD *)this + 15) = 0; cocos2d::CCSize::operator=((float *)this + 16, (float *)a2); *((_QWORD *)this + 9) = a3; if ( a3 ) { cocos2d::CCObject::retain((__int64)a3); v6 = *((_QWORD *)this + 9); } else { v6 = 0; } *((_BYTE *)this + 96) = a4; (*(void (__fastcall **)(__int64 *__return_ptr, __int64))(*(_QWORD *)v6 + 144LL))(&v14, v6); v7 = *((float *)&v14 + 1) / *((float *)this + 17); *((float *)this + 20) = *(float *)&v14 / *((float *)this + 16); *((float *)this + 21) = v7; v8 = (cocos2d::CCGrabber *)operator new(0x50u); cocos2d::CCGrabber::CCGrabber(v8); v9 = *((cocos2d::CCTexture2D **)this + 9); *((_QWORD *)this + 11) = v8; v10 = (cocos2d::CCShaderCache *)cocos2d::CCGrabber::grab(v8, v9); v11 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v10); *((_QWORD *)this + 13) = cocos2d::CCShaderCache::programForKey(v11, "ShaderPositionTexture"); (*(void (__fastcall **)(cocos2d::CCGridBase *))(*(_QWORD *)this + 96LL))(this); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source