// // cocos2d::CCShaderCache::loadDefaultShader from 0x100202aa0 to 0x100202c55 (437 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall cocos2d::CCShaderCache::loadDefaultShader(cocos2d::CCShaderCache *a1, cocos2d::CCGLProgram *a2, int a3) { const char *v4; // rsi char **v5; // rax const char *v6; // rsi char **v7; // rax const char *v8; // rsi cocos2d::CCGLProgram *v9; // rdi unsigned int v10; // edx const char *v11; // rsi cocos2d::CCGLProgram *v12; // rdi unsigned int v13; // edx const char *v14; // rsi cocos2d::CCGLProgram *v15; // rdi unsigned int v16; // edx switch ( a3 ) { case 0: v4 = off_10099C910[0]; v5 = off_10099C908; goto LABEL_13; case 1: v4 = off_10099C910[0]; v5 = off_10099C918; goto LABEL_13; case 2: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_10099C8E0[0], off_10099C8D8[0]); v8 = "a_position"; v9 = a2; v10 = 0; goto LABEL_8; case 3: v6 = off_10099C8F0[0]; v7 = off_10099C8E8; goto LABEL_6; case 4: v6 = off_10099C928[0]; v7 = off_10099C920; LABEL_6: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v6, *v7); v11 = "a_position"; v12 = a2; v13 = 0; goto LABEL_14; case 5: v4 = off_10099C900[0]; v5 = off_10099C8F8; goto LABEL_13; case 6: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_10099C8D0[0], off_10099C8C8[0]); v14 = "aVertex"; v15 = a2; v16 = 0; goto LABEL_15; case 7: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, off_10099C940, off_10099C938[0]); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v8 = "a_texCoord"; v9 = a2; v10 = 2; LABEL_8: cocos2d::CCGLProgram::addAttribute(v9, v8, v10); v14 = "a_color"; v15 = a2; v16 = 1; goto LABEL_15; case 8: v4 = off_10099C910[0]; v5 = off_10099C930; LABEL_13: cocos2d::CCGLProgram::initWithVertexShaderByteArray(a2, v4, *v5); cocos2d::CCGLProgram::addAttribute(a2, "a_position", 0); v11 = "a_color"; v12 = a2; v13 = 1; LABEL_14: cocos2d::CCGLProgram::addAttribute(v12, v11, v13); v14 = "a_texCoord"; v15 = a2; v16 = 2; LABEL_15: cocos2d::CCGLProgram::addAttribute(v15, v14, v16); cocos2d::CCGLProgram::link(a2); cocos2d::CCGLProgram::updateUniforms(a2); break; default: return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source