// // SpriteAnimationManager::playSoundForAnimation from 0x2f34e0 to 0x2f358a (170 bytes) // // 1 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x2f3718 // // 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::playSoundForAnimation(int a1, const std::string *a2) { int result; // r0 cocos2d::CCString *v5; // r8 cocos2d::CCString *v6; // r0 cocos2d::CCDictionary *v7; // r9 char *CString; // r0 cocos2d::CCString *v9; // r0 float v10; // s16 char *v11; // r0 std::string v12; // [sp+8h] [bp-Ch] BYREF result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 276), a2); v5 = (cocos2d::CCString *)result; if ( result ) { v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s%s", (const char *)a2->m_data.m_data, "delay"); v7 = *(cocos2d::CCDictionary **)(a1 + 276); CString = (char *)cocos2d::CCString::getCString(v6); sub_776584((int)&v12, CString); v9 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v7, &v12); v10 = cocos2d::CCString::floatValue(v9); result = sub_774008(&v12); if ( v10 == 0.0 ) { v11 = (char *)cocos2d::CCString::getCString(v5); sub_776584((int)&v12, v11); SpriteAnimationManager::playSound(); return sub_774008(&v12); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source