//
// cocos2d::CCTextureETC::initWithFile from 0x5f646c to 0x5f64b4 (72 bytes)
//
// 1 xrefs:
// > cocos2d::CCTexture2D::initWithETCFile @ 0x5f3a22
//
// 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::initWithFile(cocos2d::CCTextureETC *a1, const char *a2)
{
cocos2d::CCTextureETC *v2; // r6
cocos2d::CCFileUtils *v4; // r0
char *v6[2]; // [sp+0h] [bp-8h] BYREF
v6[0] = (char *)a1;
v6[1] = (char *)a2;
v2 = a1;
v4 = cocos2d::CCFileUtils::sharedFileUtils();
((void (__fastcall *)(char **, cocos2d::CCFileUtils *, const char *, _DWORD))v4->createCCArrayWithContentsOfFile)(
v6,
v4,
a2,
0);
LOBYTE(v2) = cocos2d::CCTextureETC::loadTexture(v2, v6[0]);
sub_774008(v6);
return (char)v2;
}