// // cocos2d::CCTexture2D::initWithETCFile from 0x1800a5920 to 0x1800a59e4 (196 bytes) // // 4 xrefs: // > cocos2d::CCTextureCache::addETCImage @ 0x1800a7260 // > @ 0x1801438a8 // > @ 0x1801b7c44 // > @ 0x1801b7c50 // // 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 // // Hidden C++ exception states: #wind=1 char __fastcall cocos2d::CCTexture2D::initWithETCFile(cocos2d::CCTexture2D *this, const char *a2) { cocos2d::CCTextureETC *v3; // rax cocos2d::CCInteger *v4; // rbx char result; // al char v6; // di signed int ScriptHandler; // eax float *v8; // rax cocos2d::CCTextureETC *v9; // [rsp+40h] [rbp+18h] BYREF v3 = (cocos2d::CCTextureETC *)operator new(0x48u); v9 = v3; if ( v3 ) v4 = (cocos2d::CCInteger *)cocos2d::CCTextureETC::CCTextureETC(v3); else v4 = nullptr; result = kmRay2IntersectCircle(); v6 = result; if ( result ) { this->m_uName = cocos2d::CCInteger::getValue(v4); this->m_fMaxS = 1.0; this->m_fMaxT = 1.0; this->m_uPixelsWide = cocos2d::CCTextureETC::getWidth((cocos2d::CCTextureETC *)v4); ScriptHandler = cocos2d::CCNotificationCenter::getScriptHandler((cocos2d::CCNotificationCenter *)v4); this->m_uPixelsHigh = ScriptHandler; v8 = kmVec2Fill((float *)&v9, (float)(int)this->m_uPixelsWide, (float)ScriptHandler); cocos2d::CCSize::operator=(&this->m_tContentSize, v8); this->m_bHasPremultipliedAlpha = 1; cocos2d::CCObject::release(v4); return v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source