// // cocos2d::CCGLProgram::updateUniforms from 0x1001b36c0 to 0x1001b37b8 (248 bytes) // // 3 xrefs: // > cocos2d::CCShaderCache::loadDefaultShader @ 0x100152498 // > sub_1002384D8 @ 0x1002385cc // > sub_10030BA7C @ 0x10030bba8 // // 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 11:00:09 +0000 // __int64 __fastcall cocos2d::CCGLProgram::updateUniforms(__int64 a1) { int UniformLocation; // w0 bool v3; // w8 *(_DWORD *)(a1 + 68) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_PMatrix"); *(_DWORD *)(a1 + 72) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_MVMatrix"); *(_DWORD *)(a1 + 76) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_MVPMatrix"); *(_DWORD *)(a1 + 80) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_Time"); *(_DWORD *)(a1 + 84) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_SinTime"); UniformLocation = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_CosTime"); *(_DWORD *)(a1 + 88) = UniformLocation; v3 = *(_DWORD *)(a1 + 80) != -1 || (*(_DWORD *)(a1 + 84) & UniformLocation) != -1; *(_BYTE *)(a1 + 112) = v3; *(_DWORD *)(a1 + 92) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_Random01"); *(_DWORD *)(a1 + 96) = glGetUniformLocation(*(_DWORD *)(a1 + 56), "CC_Texture0"); cocos2d::ccGLUseProgram(*(unsigned int *)(a1 + 56)); return cocos2d::CCGLProgram::setUniformLocationWith1i(a1, *(unsigned int *)(a1 + 96), 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source