// // cocos2d::CCTextureETC::loadTexture from 0xb36f70 to 0xb3716c (508 bytes) // // 2 xrefs: // > cocos2d::CCTextureETC::initWithFile @ 0xb371b4 // > @ 0x69ee8 // // 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 // bool cocos2d::CCTextureETC::loadTexture(cocos2d::CCTextureETC *a1, const char *a2) { bool result; // w0 bool v5; // w20 __int64 v6; // x23 int v7; // w24 unsigned int v8; // w2 int Error; // w24 __int64 v10; // [xsp+50h] [xbp+50h] BYREF __int64 v11; // [xsp+58h] [xbp+58h] __int64 v12; // [xsp+60h] [xbp+60h] result = cocos2d::JniHelper::getStaticMethodInfo( &v10, "org/cocos2dx/lib/Cocos2dxETCLoader", "loadTexture", (__int64)"(Ljava/lang/String;)Z"); v5 = result; if ( result ) { v6 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 1336LL))(v10, a2); v7 = (unsigned __int8)_JNIEnv::CallStaticBooleanMethod(v10, v11, v12, v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 184LL))(v10, v11); if ( !v7 ) return 0; v8 = dword_12473AC; HIDWORD(a1[1].__vftable) = dword_12473A8; a1[1].m_uID = v8; glGenTextures(); glBindTexture(); glTexParameteri(); glTexParameteri(); glTexParameteri(); glCompressedTexImage2D(); glBindTexture(); if ( qword_12473B8 ) operator delete[]((void *)qword_12473B8); qword_12473B8 = 0; Error = glGetError(); if ( !Error ) return v5; __android_log_print( 3, "CCTextureETC.cpp", "width %d, height %d, lenght %d", HIDWORD(a1[1].__vftable), a1[1].m_uID, dword_12473B0); __android_log_print( 3, "CCTextureETC.cpp", "cocos2d: TextureETC: Error uploading compressed texture %s glError: 0x%04X", a2, Error); return 0; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source