// // cocos2d::CCShaderCache::loadDefaultShader from 0x18008b730 to 0x18008b8dc (428 bytes) // // 2 xrefs: // > @ 0x18014cf68 // > @ 0x1801bfbe0 // // This function is hookable on this platform (idp: pc, 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:22:06 +0000 // void __fastcall cocos2d::CCShaderCache::loadDefaultShader( cocos2d::CCShaderCache *this, struct cocos2d::CCGLProgram *a2, int a3) { const char *v4; // r8 unsigned int v5; // r8d const char *v6; // rdx const char *v7; // rdx unsigned int v8; // r8d const char *v9; // r8 const char *v10; // rdx unsigned int v11; // r8d const char *v12; // rdx const char *v13; // rdx switch ( a3 ) { case 0: v4 = cocos2d::ccPositionTextureColor_frag; goto LABEL_13; case 1: v4 = cocos2d::ccPositionTextureColorAlphaTest_frag; goto LABEL_13; case 2: cocos2d::CCGLProgram::initWithVertexShaderByteArray( a2, cocos2d::ccPositionColor_vert, cocos2d::ccPositionColor_frag); v5 = 0; v6 = "a_position"; goto LABEL_5; case 3: v9 = cocos2d::ccPositionTexture_frag; v10 = cocos2d::ccPositionTexture_vert; goto LABEL_7; case 4: v9 = cocos2d::ccPositionTexture_uColor_frag; v10 = cocos2d::ccPositionTexture_uColor_vert; LABEL_7: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v10, v9); v11 = 0; v12 = "a_position"; goto LABEL_15; case 5: v4 = cocos2d::ccPositionTextureA8Color_frag; v13 = cocos2d::ccPositionTextureA8Color_vert; goto LABEL_14; case 6: cocos2d::CCGLProgram::initWithVertexShaderByteArray( a2, cocos2d::ccPosition_uColor_vert, cocos2d::ccPosition_uColor_frag); v7 = "aVertex"; v8 = 0; goto LABEL_16; case 7: cocos2d::CCGLProgram::initWithVertexShaderByteArray( a2, cocos2d::ccPositionColorLengthTexture_vert, cocos2d::ccPositionColorLengthTexture_frag); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v5 = 2; v6 = "a_texCoord"; LABEL_5: cocos2d::CCGLProgram::addAttribute(a2, v6, v5); v7 = "a_color"; v8 = 1; goto LABEL_16; case 8: v4 = cocos2d::ccExSwitchMask_frag; LABEL_13: v13 = cocos2d::ccPositionTextureColor_vert; LABEL_14: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v13, v4); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v12 = "a_color"; v11 = 1; LABEL_15: cocos2d::CCGLProgram::addAttribute(a2, v12, v11); v8 = 2; v7 = "a_texCoord"; LABEL_16: cocos2d::CCGLProgram::addAttribute(a2, v7, v8); cocos2d::CCGLProgram::link(a2); cocos2d::CCGLProgram::updateUniforms(a2); break; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source