// // EditorSFXActionConfigLayer::onPreviewSound from 0x140184a70 to 0x140184b2c (188 bytes) // // 2 xrefs: // > EditorSFXActionConfigLayer::refreshRows @ 0x1401845c3 // > @ 0x140918d58 // // This function is hookable on this platform (idp: pc, 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 11:27:38 +0000 // // Hidden C++ exception states: #wind=1 int __fastcall EditorSFXActionConfigLayer::onPreviewSound(__int64 a1, __int64 a2) { signed int v3; // edi __int64 v4; // rax struct cocos2d::CCObject *Binding; // rax cocos2d::CCArray *v6; // rbx __int64 v7; // rcx struct cocos2d::CCObject *v8; // rbx void *v10; // [rsp+30h] [rbp+8h] v3 = (int)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 1000) / 8; LODWORD(a1) = *(_DWORD *)(a1 + 1008); v4 = EditorSFXManager::sharedState(); Binding = (struct cocos2d::CCObject *)EditorSFXManager::findBinding(v4, (unsigned int)a1); if ( Binding ) { v6 = *(cocos2d::CCArray **)Binding; if ( *(_QWORD *)Binding ) { if ( v3 >= 0 ) { LODWORD(Binding) = cocos2d::CCArray::count(*(cocos2d::CCArray **)Binding); if ( v3 < (int)Binding ) { Binding = cocos2d::CCArray::objectAtIndex(v6, v3); v8 = Binding; if ( Binding ) { if ( *((int *)Binding + 472) > 0 ) { if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager(v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); } LODWORD(Binding) = GameManager::playSFXTrigger(v7, v8); } } } } } } return (int)Binding; }