// // GJBaseGameLayer::addProximityVolumeEffect from 0x5a5070 to 0x5a516a (250 bytes) // // 4 xrefs: // > GJBaseGameLayer::activateSongEditTrigger @ 0x5a51f6 // > GJBaseGameLayer::activateSFXTrigger @ 0x5b19d8 // > GJBaseGameLayer::activateSFXEditTrigger @ 0x5b1b0a // > GJBaseGameLayer::activateSFXEditTrigger @ 0x5b1b66 // // 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:19 +0000 // FMOD::ChannelControl *__fastcall GJBaseGameLayer::addProximityVolumeEffect( int **this, int a2, int a3, SFXTriggerGameObject *a4) { _DWORD *v8; // r4 int v9; // r11 int v10; // r3 int v11; // r2 int v12; // r1 int v13; // r1 char *v14; // r4 char *v15; // r0 int v16; // r1 char *v17; // r3 int *v18; // r3 FMODAudioEngine *v19; // r4 int v20; // r0 _DWORD *v22; // r1 char **v23; // r5 int v24; // [sp+0h] [bp-1Ch] int v25; // [sp+4h] [bp-18h] char *v26; // [sp+8h] [bp-14h] BYREF int v27; // [sp+Ch] [bp-10h] BYREF int v28; // [sp+10h] [bp-Ch] v27 = a2; v28 = a3; std::__tree,SFXTriggerInstance>,std::__map_value_compare,std::__value_type,SFXTriggerInstance>,std::less>,true>,std::allocator,SFXTriggerInstance>>>::__erase_unique>( this + 327, &v27); v8 = *(this + 328); v9 = *((_DWORD *)a4 + 321); v10 = *((_DWORD *)a4 + 322); v11 = *((_DWORD *)a4 + 373); if ( !v8 ) { v23 = (char **)(this + 328); v26 = (char *)(this + 328); goto LABEL_8; } while ( 1 ) { v12 = v8[4]; if ( v27 >= v12 ) { if ( v12 < v27 ) goto LABEL_16; v13 = v8[5]; if ( v28 >= v13 ) break; } v22 = (_DWORD *)*v8; if ( !*v8 ) { v26 = (char *)v8; v23 = (char **)v8; goto LABEL_8; } LABEL_14: v8 = v22; } if ( v13 >= v28 ) { v26 = (char *)v8; v23 = &v26; goto LABEL_8; } LABEL_16: v22 = (_DWORD *)v8[1]; if ( v22 ) goto LABEL_14; v26 = (char *)v8; v23 = (char **)(v8 + 1); LABEL_8: v14 = *v23; if ( !*v23 ) { v25 = v11; v24 = v10; v15 = (char *)operator new(0x28u); *((_DWORD *)v15 + 4) = v27; v14 = v15; v16 = v28; *((_DWORD *)v15 + 7) = v24; *(_DWORD *)v15 = 0; *((_DWORD *)v15 + 1) = 0; v17 = v26; *((_DWORD *)v15 + 5) = v16; *((_DWORD *)v15 + 6) = v9; *((_DWORD *)v15 + 8) = v25; *((_DWORD *)v15 + 9) = a4; *((_DWORD *)v15 + 2) = v17; *v23 = v15; v18 = (int *)**(this + 327); if ( v18 ) *(this + 327) = v18; std::__tree_balance_after_insert *>(*(this + 328), *v23); *(this + 329) = (int *)((char *)*(this + 329) + 1); } v19 = (FMODAudioEngine *)GJBaseGameLayer::volumeForProximityEffect((int)this, (int *)v14 + 6); v20 = FMODAudioEngine::sharedEngine(v19); return FMODAudioEngine::setChannelVolumeMod(v20, a2, a3, *(float *)&v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source