// // EditorSFXActionConfigLayer::onPreviewSound from 0xcbd97c to 0xcbda18 (156 bytes) // // 3 xrefs: // > @ 0x100960 // > EditorSFXActionConfigLayer::refreshRows @ 0xcbe7b0 // > @ 0x1547d48 // // This function is hookable on this platform (idp: arm, 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 13:06:15 +0000 // __int64 __fastcall EditorSFXActionConfigLayer::onPreviewSound(EditorSFXActionConfigLayer *this, cocos2d::CCObject *a2) { EditorSFXManager *v3; // x0 int v4; // w19 EditorSFXManager *v5; // x0 signed int v6; // w19 __int64 result; // x0 cocos2d::CCArray *v8; // x20 __int64 v9; // x1 GameManager *v10; // x0 SFXTriggerGameObject *v11; // [xsp+28h] [xbp+28h] v3 = (EditorSFXManager *)((*(unsigned int (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) - 1000); if ( (int)v3 >= 0 ) v4 = (int)v3; else v4 = (_DWORD)v3 + 7; v5 = (EditorSFXManager *)EditorSFXManager::sharedState(v3); v6 = v4 >> 3; result = EditorSFXManager::soundsForAction(v5, *((_DWORD *)this + 256)); v8 = (cocos2d::CCArray *)result; if ( (v6 & 0x80000000) == 0 ) { if ( result ) { result = cocos2d::CCArray::count((cocos2d::CCArray *)result); if ( (int)result > v6 ) { result = cocos2d::CCArray::objectAtIndex(v8, v6); v9 = result; if ( result ) { result = *(unsigned int *)(result + 1864); v11 = (SFXTriggerGameObject *)v9; if ( (int)result > 0 ) { v10 = (GameManager *)GameManager::sharedState((GameManager *)result); return GameManager::playSFXTrigger(v10, v11); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source