// // cocos2d::CCAnimationCache::addAnimation from 0x10046d270 to 0x10046d33e (206 bytes) // // 4 xrefs: // > cocos2d::CCAnimationCache::parseVersion1 @ 0x10046d567 // > cocos2d::CCAnimationCache::parseVersion2 @ 0x10046d816 // > SpriteAnimationManager::createAnimations @ 0x100721a55 // > SpriteAnimationManager::createAnimations @ 0x100722059 // // 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::CCAnimationCache::addAnimation( cocos2d::CCAnimationCache *a1, cocos2d::CCAnimation *a2, const char *a3) { double v3; // xmm0_8 cocos2d::CCAnimation *v5; // rbx cocos2d::CCAnimationCache_vtbl *v6; // r14 size_t v7; // rax size_t v8; // r12 char *v9; // r13 size_t v10; // rbx _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v5 = a2; v6 = a1[1].__vftable; v7 = strlen(a3); if ( v7 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v3); v8 = v7; if ( v7 >= 0x17 ) { v10 = 26; if ( (v7 | 7) != 0x17 ) v10 = (v7 | 7) + 1; v9 = (char *)operator new(v10); __p = v9; __dst[0] = v10 + 1; v5 = a2; __dst[1] = v8; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v7; v9 = (char *)__dst + 1; if ( v7 ) LABEL_8: memcpy(v9, a3, v8); v9[v8] = 0; cocos2d::CCDictionary::setObject_1((__int64)v6, v5, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source