// // AnimatedShopKeeper::playReactAnimation from 0x4e2d5c to 0x4e2e30 (212 bytes) // // 1 xrefs: // > GJShopLayer::ccTouchBegan @ 0x4e2f50 // // 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 AnimatedShopKeeper::playReactAnimation(AnimatedShopKeeper *a1) { int v2; // r5 bool v3; // nf cocos2d::CCString *v4; // r0 char *CString; // r0 FMODAudioEngine *v6; // r9 int v7; // r2 _BYTE v8[4]; // [sp+8h] [bp-14h] BYREF _BYTE v9[4]; // [sp+Ch] [bp-10h] BYREF _BYTE v10[4]; // [sp+10h] [bp-Ch] BYREF if ( !a1->m_reacting ) { v2 = a1->m_gruntIndex + 1; v3 = a1->m_gruntIndex - 2 < 0; if ( v2 <= 3 ) a1->m_gruntIndex = v2; if ( !(v3 ^ __OFSUB__(v2, 3) | (v2 == 3)) ) a1->m_gruntIndex = 1; v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"grunt0%i.ogg", (const char *)a1->m_gruntIndex); CString = (char *)cocos2d::CCString::getCString(v4); sub_776584((int)v8, CString); v6 = FMODAudioEngine::sharedEngine(); sub_775C20(v9); FMODAudioEngine::playEffect(v6, (int)v9, 1.0, 0, 1059481190); sub_774008(v9); sub_776584((int)v10, "react01"); CCAnimatedSprite::runAnimationForced((int)a1, (int)v10, v7); sub_774008(v10); a1->m_reacting = 1; ++a1->m_reactCount; sub_774008(v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source