// // GJBaseGameLayer::updateProximityVolumeEffects from 0x140242320 to 0x140242430 (272 bytes) // // 5 xrefs: // > GJBaseGameLayer::update @ 0x140239043 // > PlayLayer::setupHasCompleted @ 0x1403a7781 // > PlayLayer::resetLevel @ 0x1403b97b4 // > PlayLayer::startMusic @ 0x1403baadf // > @ 0x1406ce484 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=1 void GJBaseGameLayer::updateProximityVolumeEffects(GJBaseGameLayer *a1) { std::_Tree_node, SFXTriggerInstance>, void *>::_Nodeptr Left; // rbx int first; // edi AudioTargetType second; // esi float v5; // xmm0_4 FMODAudioEngine *v6; // rcx std::_Tree_node, SFXTriggerInstance>, void *>::_Nodeptr Right; // rax std::_Tree_node, SFXTriggerInstance>, void *>::_Nodeptr i; // rax std::_Tree_node, SFXTriggerInstance>, void *> *j; // rax SFXTriggerInstance v10; // [rsp+20h] [rbp-38h] BYREF FMODAudioEngine *v11; // [rsp+60h] [rbp+8h] Left = a1->m_gameState.m_proximityVolumeRelated._Mypair._Myval2._Myval2._Myhead->_Left; while ( !Left->_Isnil ) { first = Left->_Myval.first.first; second = Left->_Myval.first.second; v10 = Left->_Myval.second; v5 = GJBaseGameLayer::volumeForProximityEffect(a1, &v10); v6 = (FMODAudioEngine *)qword_1406C2E88; if ( !qword_1406C2E88 ) { v11 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v6 = (FMODAudioEngine *)qword_1406C2E88; } FMODAudioEngine::setChannelVolumeMod(v6, first, second, v5); Right = Left->_Right; if ( Right->_Isnil ) { for ( i = Left->_Parent; !i->_Isnil; i = i->_Parent ) { if ( Left != i->_Right ) break; Left = i; } Left = i; } else { Left = Left->_Right; for ( j = Right->_Left; !j->_Isnil; j = j->_Left ) Left = j; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source