// // SpriteAnimationManager::switchToFirstFrameOfAnimation from 0x2f3a50 to 0x2f3afa (170 bytes) // // 0 xrefs: // // 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 // int __fastcall SpriteAnimationManager::switchToFirstFrameOfAnimation( int a1, const std::string *a2, stl::StringData::Internal *a3, stl::StringData::Internal *a4) { int result; // r0 spriteMode AnimType; // r8 cocos2d::CCDictionary *v8; // r8 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r7 std::string v12[2]; // [sp+8h] [bp-8h] BYREF v12[0].m_data.m_data = a3; v12[1].m_data.m_data = a4; result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 292), a2); if ( !*(_DWORD *)(result + 24) ) { sub_775C20(v12, a2); AnimType = SpriteAnimationManager::getAnimType(a1, v12); sub_774008(v12); CCAnimatedSprite::switchToMode(*(CCAnimatedSprite **)(a1 + 264), AnimType); v8 = *(cocos2d::CCDictionary **)(a1 + 292); v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s_first", (const char *)a2->m_data.m_data); CString = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)v12, CString); v11 = cocos2d::CCDictionary::objectForKey(v8, v12); result = sub_774008(v12); if ( (unsigned int)(*(_DWORD *)(v11 + 24) - 1) <= 1 ) return (*(int (__fastcall **)(_DWORD, int))(**(_DWORD **)(*(_DWORD *)(a1 + 264) + 520) + 572))( *(_DWORD *)(*(_DWORD *)(a1 + 264) + 520), v11); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source