// // cocos2d::CCGLProgram::initWithVertexShaderFilename from 0x7ee78c to 0x7ee832 (166 bytes) // // 0 xrefs: // // 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:01:02 +0000 // int __fastcall cocos2d::CCGLProgram::initWithVertexShaderFilename( cocos2d::CCGLProgram *this, const char *a2, cocos2d::CCString *a3, int a4) { int v7; // r0 const char *v8; // r1 unsigned __int8 *v9; // r2 cocos2d::CCString *v10; // r0 cocos2d::CCObject *v11; // r0 char *CString; // r0 const char *v13; // r8 int v14; // r0 const char *v15; // r1 cocos2d::CCString *v16; // r0 cocos2d::CCObject *v17; // r0 char *v18; // r5 _DWORD v20[2]; // [sp+0h] [bp-10h] BYREF cocos2d::CCString *v21; // [sp+8h] [bp-8h] int v22; // [sp+Ch] [bp-4h] v20[0] = this; v20[1] = a2; v21 = a3; v22 = a4; v7 = cocos2d::CCFileUtils::sharedFileUtils(this); (*(void (__fastcall **)(_DWORD *, int, const char *, _DWORD))(*(_DWORD *)v7 + 24))(v20, v7, a2, 0); if ( (v20[0] & 1) != 0 ) v10 = v21; else v10 = (cocos2d::CCString *)((char *)v20 + 1); v11 = cocos2d::CCString::createWithContentsOfFile(v10, v8, v9); CString = cocos2d::CCString::getCString(v11); v13 = CString; if ( (v20[0] & 1) != 0 ) operator delete(v21); v14 = cocos2d::CCFileUtils::sharedFileUtils((cocos2d::CCFileUtils *)CString); (*(void (__fastcall **)(_DWORD *, int, cocos2d::CCString *, _DWORD))(*(_DWORD *)v14 + 24))(v20, v14, a3, 0); if ( (v20[0] & 1) != 0 ) v16 = v21; else v16 = (cocos2d::CCString *)((char *)v20 + 1); v17 = cocos2d::CCString::createWithContentsOfFile(v16, v15, (unsigned __int8 *)(LOBYTE(v20[0]) << 31)); v18 = cocos2d::CCString::getCString(v17); if ( (v20[0] & 1) != 0 ) operator delete(v21); return cocos2d::CCGLProgram::initWithVertexShaderByteArray(this, v13, v18); }
GD Web Decomp Icon

GD Web Decomp

Raw Source