// // EditorSFXActionConfigLayer::onPreviewSound from 0x1008e06e0 to 0x1008e0786 (166 bytes) // // 1 xrefs: // > EditorSFXActionConfigLayer::refreshRows @ 0x1008e0375 // // 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 12:37:45 +0000 // char __fastcall EditorSFXActionConfigLayer::onPreviewSound(__int64 a1, __int64 a2, double a3, __m128 a4) { int v4; // r15d int v5; // ebx __int64 v6; // rax __int64 v7; // r14 __int64 v8; // rax signed int v9; // ebx __int64 v10; // rbx __int64 v11; // rax v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v5 = v4 - 993; if ( v4 - 1000 >= 0 ) v5 = v4 - 1000; v6 = EditorSFXManager::sharedState(a2); v7 = EditorSFXManager::soundsForAction(v6, *(unsigned int *)(a1 + 1024)); LOBYTE(v8) = v7 == 0; if ( v7 != 0 && v4 >= 993 ) { v9 = v5 >> 3; LODWORD(v8) = sub_1007FEF90(v7); if ( v9 < (int)v8 ) { v8 = sub_1007FEFE0(v7, v9); if ( v8 ) { v10 = v8; if ( *(int *)(v8 + 1864) > 0 ) { v11 = GameManager::sharedState(); LOBYTE(v8) = GameManager::playSFXTrigger(v11, v10, a3, a4); } } } } return v8; }