// // cocos2d::CCGLProgram::updateUniforms from 0x7eecfc to 0x7eed8e (146 bytes) // // 4 xrefs: // > CCSpriteWithHue::initShader @ 0x3f2fda // > ShaderLayer::setupShader @ 0x684f30 // > cocos2d::extension::CCControlSwitchSprite::initWithMaskSprite @ 0x7aa4b6 // > cocos2d::CCShaderCache::loadDefaultShader @ 0x7ef742 // // 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::updateUniforms(cocos2d::CCGLProgram *this) { int UniformLocation; // r0 int v3; // r3 bool v4; // r0 unsigned int v5; // r1 *((_DWORD *)this + 16) = glGetUniformLocation(); *((_DWORD *)this + 17) = glGetUniformLocation(); *((_DWORD *)this + 18) = glGetUniformLocation(); *((_DWORD *)this + 19) = glGetUniformLocation(); *((_DWORD *)this + 20) = glGetUniformLocation(); UniformLocation = glGetUniformLocation(); v3 = *((_DWORD *)this + 19) + 1; *((_DWORD *)this + 21) = UniformLocation; v4 = v3 || *((_DWORD *)this + 20) != -1 || UniformLocation != -1; *((_BYTE *)this + 100) = v4; *((_DWORD *)this + 22) = glGetUniformLocation(); *((_DWORD *)this + 23) = glGetUniformLocation(); cocos2d::CCGLProgram::use((cocos2d **)this, v5); return cocos2d::CCGLProgram::setUniformLocationWith1i(this, *((_DWORD *)this + 23), 0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source