// // cocos2d::CCTextureETC::loadTexture from 0x802d80 to 0x802ec6 (326 bytes) // // 1 xrefs: // > cocos2d::CCTextureETC::initWithFile @ 0x802f20 // // 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:21 +0000 // int __fastcall cocos2d::CCTextureETC::loadTexture(cocos2d::CCTextureETC *this, const char *a2) { int result; // r0 int v5; // r5 int v6; // r8 int v7; // r7 GLenum Error; // r7 char *v9; // [sp+10h] [bp-14h] BYREF int v10; // [sp+14h] [bp-10h] int v11; // [sp+18h] [bp-Ch] result = cocos2d::JniHelper::getStaticMethodInfo( &v9, "org/cocos2dx/lib/Cocos2dxETCLoader", "loadTexture", (int)"(Ljava/lang/String;)Z"); v5 = result; if ( result ) { v6 = (*(int (__fastcall **)(char *, const char *))(*(_DWORD *)v9 + 668))(v9, a2); v7 = _JNIEnv::CallStaticBooleanMethod((int)v9, v10, v11, v6); (*(void (__fastcall **)(char *, int))(*(_DWORD *)v9 + 92))(v9, v6); (*(void (__fastcall **)(char *, int))(*(_DWORD *)v9 + 92))(v9, v10); if ( !v7 ) return 0; *((_DWORD *)this + 14) = dword_D311E8; *((_DWORD *)this + 15) = dword_D311EC; glGenTextures(1, (GLuint *)this + 13); glBindTexture(0xDE1u, *((_DWORD *)this + 13)); glTexParameteri(0xDE1u, 0x2801u, 9729); glTexParameteri(0xDE1u, 0x2802u, 33071); glTexParameteri(0xDE1u, 0x2803u, 33071); glCompressedTexImage2D( 0xDE1u, 0, 0x8D64u, *((_DWORD *)this + 14), *((_DWORD *)this + 15), 0, dword_D311F0, (const GLvoid *)dword_D311F4); glBindTexture(0xDE1u, 0); if ( dword_D311F4 ) operator delete[]((void *)dword_D311F4); dword_D311F4 = 0; Error = glGetError(); if ( Error ) { _android_log_print( 3, "CCTextureETC.cpp", "width %d, height %d, lenght %d", *((_DWORD *)this + 14), *((_DWORD *)this + 15), dword_D311F0); v5 = 0; _android_log_print( 3, "CCTextureETC.cpp", "cocos2d: TextureETC: Error uploading compressed texture %s glError: 0x%04X", a2, Error); } return v5; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source