// // cocos2d::CCTexture2D::initWithPVRFile from 0x1004792e0 to 0x1004793aa (202 bytes) // // 1 xrefs: // > cocos2d::CCTextureCache::addPVRImage @ 0x1005ee414 // // 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 __fastcall cocos2d::CCTexture2D::initWithPVRFile(cocos2d::CCTexture2D *a1, const char *a2) { void *v2; // rbx bool result; // al signed int v4; // ecx __int64 v5; // rdx bool v6; // r12 float v7[10]; // [rsp+8h] [rbp-28h] BYREF v2 = operator new(0x158u); cocos2d::CCTexturePVR::CCTexturePVR((__int64)v2); result = cocos2d::CCTexturePVR::initWithContentsOfFile((cocos2d::CCTexturePVR *)v2, a2); if ( result ) { *((_BYTE *)v2 + 331) = 1; *(_QWORD *)&a1->m_fMaxS = 0x3F8000003F800000LL; v4 = *((_DWORD *)v2 + 79); a1->m_uPixelsWide = v4; v5 = *((_QWORD *)v2 + 40); *(_QWORD *)&a1->m_uPixelsHigh = v5; v6 = result; sub_10028CBF0(v7, (float)v4, (float)(int)v5); sub_10028CFF0(&a1->m_tContentSize, v7); a1->m_bHasPremultipliedAlpha = byte_1009A1A44; a1->m_ePixelFormat = *((_DWORD *)v2 + 83); a1->m_bHasMipmaps = *((_DWORD *)v2 + 78) >= 2u; cocos2d::CCObject::release((cocos2d::CCObject *)v2); return v6; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source