// // cocos2d::CCTMXLayer::parseInternalProperties from 0x804904 to 0x8049ac (168 bytes) // // 1 xrefs: // > cocos2d::CCTMXLayer::setupTiles @ 0x804a0a // // 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 12:01:23 +0000 // int __fastcall cocos2d::CCTMXLayer::parseInternalProperties(cocos2d::CCTMXLayer *this) { int result; // r0 cocos2d::CCString *v3; // r5 int v4; // r3 const void *v5; // r0 cocos2d::CCString *v6; // r0 float v7; // r5 void (__fastcall *v8)(cocos2d::CCTMXLayer *, int); // r6 cocos2d::CCShaderCache *v9; // r0 int v10; // r0 int UniformLocation; // r6 cocos2d::CCGLProgram *v12; // r0 result = cocos2d::CCTMXLayer::propertyNamed(this, "cc_vertexz"); v3 = (cocos2d::CCString *)result; if ( !result ) return result; v4 = *(unsigned __int8 *)(result + 52); if ( (v4 & 1) == 0 ) { if ( v4 >> 1 == 9 ) { v5 = (const void *)(result + 53); goto LABEL_7; } LABEL_8: result = cocos2d::CCString::intValue(v3); *((_DWORD *)this + 86) = result; return result; } if ( *(_DWORD *)(result + 56) != 9 ) goto LABEL_8; v5 = *(const void **)(result + 60); LABEL_7: if ( memcmp(v5, "automatic", 9u) ) goto LABEL_8; *((_BYTE *)this + 348) = 1; v6 = (cocos2d::CCString *)cocos2d::CCTMXLayer::propertyNamed(this, "cc_alpha_func"); if ( v6 ) { v6 = (cocos2d::CCString *)cocos2d::CCString::floatValue(v6); v7 = *(float *)&v6; } else { v7 = 0.0; } v8 = *(void (__fastcall **)(cocos2d::CCTMXLayer *, int))(*(_DWORD *)this + 332); v9 = (cocos2d::CCShaderCache *)cocos2d::CCShaderCache::sharedShaderCache(v6); v10 = cocos2d::CCShaderCache::programForKey(v9, "ShaderPositionTextureColorAlphaTest"); v8(this, v10); (*(void (__fastcall **)(cocos2d::CCTMXLayer *))(*(_DWORD *)this + 328))(this); UniformLocation = glGetUniformLocation(); v12 = (cocos2d::CCGLProgram *)(*(int (__fastcall **)(cocos2d::CCTMXLayer *))(*(_DWORD *)this + 328))(this); return cocos2d::CCGLProgram::setUniformLocationWith1f(v12, UniformLocation, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source