// // SpriteAnimationManager::playSoundForAnimation from 0x3d80d4 to 0x3d81a4 (208 bytes) // // 1 xrefs: // > SpriteAnimationManager::executeAnimation @ 0x3d8354 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:45 +0000 // int __fastcall SpriteAnimationManager::playSoundForAnimation(int a1, int a2) { int result; // r0 cocos2d::CCString *v5; // r7 const char *v6; // r1 cocos2d::CCString *v7; // r0 int v8; // r8 const char *CString; // r9 size_t v10; // r0 cocos2d::CCString *v11; // r0 float v12; // s16 const char *v13; // r0 const char *v14; // r7 size_t v15; // r0 int v16; // [sp+0h] [bp-14h] BYREF int v17; // [sp+4h] [bp-10h] int v18; // [sp+8h] [bp-Ch] result = cocos2d::CCDictionary::objectForKey(*(_DWORD *)(a1 + 276), a2); v5 = (cocos2d::CCString *)result; if ( result ) { if ( (*(_BYTE *)a2 & 1) != 0 ) v6 = *(const char **)(a2 + 8); else v6 = (const char *)(a2 + 1); v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%s", v6, "delay"); v8 = *(_DWORD *)(a1 + 276); v16 = 0; v17 = 0; v18 = 0; CString = (const char *)cocos2d::CCString::getCString(v7); v10 = strlen(CString); std::string::__init(&v16, CString, v10); v11 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v8, &v16); v12 = COERCE_FLOAT(cocos2d::CCString::floatValue(v11)); result = std::string::~string((int)&v16); if ( v12 == 0.0 ) { v13 = (const char *)cocos2d::CCString::getCString(v5); v16 = 0; v17 = 0; v18 = 0; v14 = v13; v15 = strlen(v13); std::string::__init(&v16, v14, v15); SpriteAnimationManager::playSound(); return std::string::~string((int)&v16); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source