//
// cocos2d::CCSprite::initWithFile from 0x18008bb60 to 0x18008bbc2 (98 bytes)
//
// 7 xrefs:
// > ??> @ 0x1800ebc10
// > ??> @ 0x1800ec0e8
// > ??> @ 0x1800ecc68
// > ??> @ 0x180103b20
// > ??> @ 0x180106b18
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b5b8c
//
// 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::CCSprite::initWithFile(
cocos2d::CCSprite *this,
const char *a2,
const struct cocos2d::CCRect *a3)
{
cocos2d::CCTextureCache *v6; // rax
struct cocos2d::CCTexture2D *v7; // rax
v6 = cocos2d::CCTextureCache::sharedTextureCache();
v7 = cocos2d::CCTextureCache::addImage(v6, a2, 0);
if ( v7 )
LOBYTE(v7) = ((bool (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, const struct cocos2d::CCRect *))this->initWithTexture_0)(
this,
v7,
a3);
return (char)v7;
}