// // GJBaseGameLayer::applySFXEditTrigger from 0x9aa110 to 0x9aa200 (240 bytes) // // 5 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x9c1eb4 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x9dfff8 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x9e0008 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x9e0064 // > @ 0x7abd8 // // 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 12:58:11 +0000 // __int64 __fastcall GJBaseGameLayer::applySFXEditTrigger( GJBaseGameLayer *this, int a2, int a3, SFXTriggerGameObject *a4) { FMODAudioEngine *v4; // x0 _QWORD *v8; // x0 FMODAudioEngine *v9; // x0 float v10; // s1 __int64 v11; // x0 __int64 result; // x0 __int64 v13; // x0 float v14; // [xsp+30h] [xbp+30h] if ( *((_BYTE *)this + 12545) || !*((_BYTE *)this + 12544) || (result = *((unsigned __int8 *)this + 12238), (_DWORD)result) ) { v4 = (FMODAudioEngine *)*((unsigned __int8 *)a4 + 1956); if ( *((_BYTE *)a4 + 1956) || (v4 = (FMODAudioEngine *)*((unsigned __int8 *)a4 + 1907), *((_BYTE *)a4 + 1907)) ) { v8 = (_QWORD *)FMODAudioEngine::sharedEngine(v4); FMODAudioEngine::stopChannel(v8, a2, a3, *((_BYTE *)a4 + 1907), 0.0); } v9 = (FMODAudioEngine *)*((unsigned __int8 *)a4 + 1958); if ( *((_BYTE *)a4 + 1958) ) { v10 = *((float *)a4 + 468); if ( v10 <= 0.0 ) { FMODAudioEngine::sharedEngine(v9); v10 = FMODAudioEngine::pitchForIdx((FMODAudioEngine *)*((unsigned int *)a4 + 469)); } v14 = v10; v11 = FMODAudioEngine::sharedEngine(v9); FMODAudioEngine::updateChannel(v11, a2, a3, 1, *((float *)a4 + 363), v14); } result = *((unsigned __int8 *)a4 + 1957); if ( *((_BYTE *)a4 + 1957) ) { v13 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)result); return FMODAudioEngine::updateChannel(v13, a2, a3, 0, *((float *)a4 + 363), *((float *)a4 + 471)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source