// // cocos2d::CCAnimationCache::addAnimation from 0x100461660 to 0x10046172e (206 bytes) // // 4 xrefs: // > cocos2d::CCAnimationCache::parseVersion1 @ 0x100461957 // > cocos2d::CCAnimationCache::parseVersion2 @ 0x100461c06 // > SpriteAnimationManager::createAnimations @ 0x100800975 // > SpriteAnimationManager::createAnimations @ 0x100800f79 // // This function is hookable on this platform (idp: pc, 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 12:30:25 +0000 // void __fastcall cocos2d::CCAnimationCache::addAnimation(__int64 a1, __int64 a2, const char *a3) { __int64 v4; // rbx __int64 v5; // r14 size_t v6; // rax size_t v7; // r12 char *v8; // r13 size_t v9; // rbx _QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] v4 = a2; v5 = *(_QWORD *)(a1 + 56); v6 = strlen(a3); if ( v6 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100003630(); v7 = v6; if ( v6 >= 0x17 ) { v9 = 26; if ( (v6 | 7) != 0x17 ) v9 = (v6 | 7) + 1; v8 = (char *)operator new(v9); __p = v8; __dst[0] = v9 + 1; v4 = a2; __dst[1] = v7; goto LABEL_8; } LOBYTE(__dst[0]) = 2 * v6; v8 = (char *)__dst + 1; if ( v6 ) LABEL_8: memcpy(v8, a3, v7); v8[v7] = 0; cocos2d::CCDictionary::setObject(v5, v4, (char *)__dst); if ( (__dst[0] & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source