// // GJBaseGameLayer::applySFXEditTrigger from 0x597090 to 0x597146 (182 bytes) // // 4 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x5a51e0 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x5b1af4 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x5b1b34 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x5b1b5a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:09 +0000 // void __fastcall GJBaseGameLayer::applySFXEditTrigger( GJBaseGameLayer *this, unsigned int a2, int a3, SFXTriggerGameObject *a4) { FMODAudioEngine *v7; // r0 int v8; // s16 int v9; // r1 int v10; // r0 int v11; // r0 if ( *((_BYTE *)this + 10785) || !*((_BYTE *)this + 10784) || *((_BYTE *)this + 10614) ) { if ( *((_BYTE *)a4 + 1752) || *((_BYTE *)a4 + 1703) ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(this); FMODAudioEngine::stopChannel(v7, a2, a3, *((unsigned __int8 *)a4 + 1703), 0.0); } if ( *((_BYTE *)a4 + 1754) ) { v8 = *((int *)a4 + 417); if ( *(float *)&v8 <= 0.0 ) { FMODAudioEngine::sharedEngine(this); this = (GJBaseGameLayer *)FMODAudioEngine::pitchForIdx(*((FMODAudioEngine **)a4 + 418), v9); v8 = (int)this; } v10 = FMODAudioEngine::sharedEngine(this); this = FMODAudioEngine::updateChannel( v10, a2, a3, (FMOD::ChannelControl *)((char *)&dword_0 + 1), *((float *)a4 + 318), v8); } if ( *((_BYTE *)a4 + 1753) ) { v11 = FMODAudioEngine::sharedEngine(this); FMODAudioEngine::updateChannel(v11, a2, a3, nullptr, *((float *)a4 + 318), *((_DWORD *)a4 + 420)); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source