Skip to content

Commit

Permalink
Fix hooking zCActiveSndAutoCalcObstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiyansKing committed Jun 18, 2023
1 parent 8a15974 commit 043729c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions D3D11Engine/DLLMain.cpp
Expand Up @@ -217,7 +217,9 @@ int WINAPI hooked_WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR l
// Remove automatic volume change of sounds regarding whether the camera is indoor or outdoor
// TODO: Implement!
if ( !GMPModeActive ) {
DetourTransactionBegin();
DetourAttach( &reinterpret_cast<PVOID&>(HookedFunctions::OriginalFunctions.original_zCActiveSndAutoCalcObstruction), HookedFunctionInfo::hooked_zCActiveSndAutoCalcObstruction );
DetourTransactionCommit();
}
return originalWinMain( hInstance, hPrevInstance, lpCmdLine, nShowCmd );
}
Expand Down

0 comments on commit 043729c

Please sign in to comment.