// // GJBaseGameLayer::applySFXEditTrigger from 0x14034c260 to 0x14034c454 (500 bytes) // // 7 xrefs: // > GJBaseGameLayer::processQueuedAudioTriggers @ 0x140345b3e // > GJBaseGameLayer::activateSongEditTrigger @ 0x14034ba80 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x14034c115 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x14034c1b4 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x14034c242 // > LevelEditorLayer::activateTriggerEffect @ 0x1403fc103 // > @ 0x140920090 // // 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:30:45 +0000 // // Hidden C++ exception states: #wind=4 void __fastcall GJBaseGameLayer::applySFXEditTrigger(_BYTE *a1, int a2, unsigned int a3, __int64 a4) { __int64 v7; // rcx int v8; // xmm6_4 __int64 v9; // rcx void *v10; // [rsp+60h] [rbp+8h] void *v11; // [rsp+60h] [rbp+8h] void *v12; // [rsp+60h] [rbp+8h] void *v13; // [rsp+60h] [rbp+8h] if ( a1[13025] || !a1[13024] || a1[12670] ) { if ( *(_BYTE *)(a4 + 1980) || *(_BYTE *)(a4 + 1931) ) { v7 = qword_14090BF60; if ( !qword_14090BF60 ) { v10 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v7 = qword_14090BF60; } FMODAudioEngine::stopChannel(v7, a2, a3, *(_BYTE *)(a4 + 1931), 0.0); } if ( *(_BYTE *)(a4 + 1982) ) { v8 = *(int *)(a4 + 1896); if ( *(float *)&v8 <= 0.0 ) { if ( !qword_14090BF60 ) { v11 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); } *(float *)&v8 = FMODAudioEngine::pitchForIdx(*(_DWORD *)(a4 + 1900)); } if ( !qword_14090BF60 ) { v12 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); } FMODAudioEngine::updateChannel(qword_14090BF60, a2, a3, 1, *(float *)(a4 + 1468), v8); } if ( *(_BYTE *)(a4 + 1981) ) { v9 = qword_14090BF60; if ( !qword_14090BF60 ) { v13 = operator new(0x8A8u); qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v13); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60); v9 = qword_14090BF60; } FMODAudioEngine::updateChannel(v9, a2, a3, 0, *(float *)(a4 + 1468), *(_DWORD *)(a4 + 1908)); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source