// // cocos2d::CCAnimation::addSpriteFrameWithFileName from 0x1800899b0 to 0x180089a29 (121 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801b59ac // // 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 // void __fastcall cocos2d::CCAnimation::addSpriteFrameWithFileName(cocos2d::CCAnimation *this, const char *a2) { cocos2d::CCTextureCache *v4; // rax struct cocos2d::CCTexture2D *v5; // rbx _DWORD *v6; // rax struct cocos2d::CCSpriteFrame *v7; // rax cocos2d::CCRect v8; // [rsp+20h] [rbp-18h] BYREF char v9; // [rsp+50h] [rbp+18h] BYREF v4 = cocos2d::CCTextureCache::sharedTextureCache(); v5 = cocos2d::CCTextureCache::addImage(v4, a2, 0); cocos2d::CCRect::CCRect(&v8, &unk_1801A87B8); v6 = (_DWORD *)((__int64 (__fastcall *)(struct cocos2d::CCTexture2D *, char *))v5->getContentSize)(v5, &v9); cocos2d::CCSize::operator=(&v8.size, v6); v7 = cocos2d::CCSpriteFrame::createWithTexture(v5, &v8); cocos2d::CCAnimation::addSpriteFrame(this, v7); }