// // cocos2d::CCTMXLayer::parseInternalProperties from 0xdaaf14 to 0xdab030 (284 bytes) // // 2 xrefs: // > cocos2d::CCTMXLayer::setupTiles @ 0xdac1dc // > @ 0x81160 // // This function is hookable on this platform (idp: arm, 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 13:08:34 +0000 // __int64 __fastcall cocos2d::CCTMXLayer::parseInternalProperties(cocos2d::CCTMXLayer *this) { __int64 result; // x0 _QWORD *v3; // x20 int v4; // w0 const void *v5; // x0 cocos2d::CCString *v6; // x0 float v7; // s0 void (__fastcall *v8)(cocos2d::CCTMXLayer *, __int64); // x20 cocos2d::CCShaderCache *v9; // x0 __int64 v10; // x0 cocos2d::CCGLProgram *v11; // x0 float v12; // [xsp+20h] [xbp+20h] int UniformLocation; // [xsp+38h] [xbp+38h] result = cocos2d::CCTMXLayer::propertyNamed(this, "cc_vertexz"); v3 = (_QWORD *)result; if ( result ) { v4 = *(unsigned __int8 *)(result + 56); if ( (v4 & 1) != 0 ) { if ( v3[8] != 9 ) goto LABEL_4; v5 = (const void *)v3[9]; } else { if ( v4 >> 1 != 9 ) { LABEL_4: result = cocos2d::CCString::intValue((cocos2d::CCString *)v3); *((_DWORD *)this + 111) = result; return result; } v5 = (char *)v3 + 57; } if ( memcmp(v5, "automatic", 9u) ) goto LABEL_4; *((_BYTE *)this + 448) = 1; v6 = (cocos2d::CCString *)cocos2d::CCTMXLayer::propertyNamed(this, "cc_alpha_func"); if ( v6 ) v7 = cocos2d::CCString::floatValue(v6); else v7 = 0.0; v12 = v7; v8 = *(void (__fastcall **)(cocos2d::CCTMXLayer *, __int64))(*(_QWORD *)this + 664LL); v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(*(cocos2d::CCShaderCache **)this); v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColorAlphaTest"); v8(this, v10); (*(void (__fastcall **)(cocos2d::CCTMXLayer *))(*(_QWORD *)this + 656LL))(this); UniformLocation = glGetUniformLocation(); v11 = (cocos2d::CCGLProgram *)(*(__int64 (__fastcall **)(cocos2d::CCTMXLayer *))(*(_QWORD *)this + 656LL))(this); return cocos2d::CCGLProgram::setUniformLocationWith1f(v11, UniformLocation, v12); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source