// // ShaderLayer::preInvertColorShader from 0x684a34 to 0x684adc (168 bytes) // // 1 xrefs: // > ShaderLayer::performCalculations @ 0x68560e // // 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 11:56:04 +0000 // int __fastcall ShaderLayer::preInvertColorShader(ShaderLayer *this) { float v2; // s16 float v3; // s18 float v4; // s17 float v5; // s16 cocos2d::CCGLProgram *v6; // r0 if ( *((float *)this + 218) > 0.0 || cocos2d::CCNode::getActionByTag(this, 34) ) *((_BYTE *)this + 950) = 1; v2 = *((float *)this + 218); v3 = v2 * *((float *)this + 219); v4 = v2 * *((float *)this + 220); v5 = v2 * *((float *)this + 221); if ( *((_BYTE *)this + 888) ) { if ( v3 >= 1.0 ) v3 = 1.0; if ( v4 >= 1.0 ) v4 = 1.0; if ( v5 >= 1.0 ) v5 = 1.0; } v6 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 241) + 328))(*((_DWORD *)this + 241)); return cocos2d::CCGLProgram::setUniformLocationWith4f(v6, *((_DWORD *)this + 346), v3, v4, v5, *((float *)this + 218)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source