//
// cocos2d::CCTexture2D::stringForFormat from 0xda2be0 to 0xda2c80 (160 bytes)
//
// 1 xrefs:
// > ??> @ 0x4d7a0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:08:30 +0000
//
const char *__fastcall cocos2d::CCTexture2D::stringForFormat(cocos2d::CCTexture2D *this)
{
int v1; // w1
const char *result; // x0
v1 = *((_DWORD *)this + 15);
result = nullptr;
switch ( v1 )
{
case 0:
result = "RGBA8888";
break;
case 1:
result = "RGB888";
break;
case 2:
result = "RGB565";
break;
case 3:
result = "A8";
break;
case 4:
result = "I8";
break;
case 5:
result = "AI88";
break;
case 6:
result = "RGBA4444";
break;
case 7:
result = "RGB5A1";
break;
case 8:
result = "PVRTC4";
break;
case 9:
result = "PVRTC2";
break;
default:
return result;
}
return result;
}