// // cocos2d::CCTMXLayer::parseInternalProperties from 0x10025a390 to 0x10025a494 (260 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setupTiles @ 0x10025a094 // // 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::CCTMXLayer::parseInternalProperties(cocos2d::CCTMXLayer *a1) { cocos2d::CCString *v1; // rax std::uint8_t sizex2; // cl std::array *longStorage; // rcx cocos2d::CCString *v4; // rax float v5; // xmm0_4 cocos2d::CCShaderCache *v6; // rax cocos2d::CCGLProgram *v7; // rax __int64 v8; // rax GLint UniformLocation; // r14d cocos2d::CCGLProgram *v10; // rax v1 = cocos2d::CCTMXLayer::propertyNamed(a1, "cc_vertexz"); if ( !v1 ) return; sizex2 = v1->m_sString.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( v1->m_sString.m_data.m_long.size == 9 ) { longStorage = (std::array *)v1->m_sString.m_data.m_long.longStorage; goto LABEL_7; } LABEL_8: LODWORD(a1[1].m_fSkewX) = cocos2d::CCString::intValue(v1); return; } if ( sizex2 != 18 ) goto LABEL_8; longStorage = &v1->m_sString.m_data.m_short.shortStorage; LABEL_7: if ( *(_QWORD *)longStorage->__elems_ ^ 0x6974616D6F747561LL | (unsigned __int8)longStorage->__elems_[8] ^ 0x63LL ) goto LABEL_8; LOBYTE(a1[1].m_fSkewY) = 1; v4 = cocos2d::CCTMXLayer::propertyNamed(a1, "cc_alpha_func"); if ( v4 ) v5 = cocos2d::CCString::floatValue(v4); else v5 = 0.0; v6 = cocos2d::CCShaderCache::sharedShaderCache(); v7 = cocos2d::CCShaderCache::programForKey(v6, "ShaderPositionTextureColorAlphaTest"); ((void (__fastcall *)(cocos2d::CCTMXLayer *, cocos2d::CCGLProgram *))a1->setShaderProgram)(a1, v7); v8 = ((__int64 (__fastcall *)(cocos2d::CCTMXLayer *))a1->getShaderProgram)(a1); UniformLocation = glGetUniformLocation(*(_DWORD *)(v8 + 56), "CC_alpha_value"); v10 = (cocos2d::CCGLProgram *)((__int64 (__fastcall *)(cocos2d::CCTMXLayer *))a1->getShaderProgram)(a1); cocos2d::CCGLProgram::setUniformLocationWith1f(v10, UniformLocation, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source