diff options
Diffstat (limited to '')
-rw-r--r-- | src/audio/AudioManager.cpp | 9 | ||||
-rw-r--r-- | src/audio/AudioManager.h | 3 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 2e5089bc..98a2f82f 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -12,7 +12,12 @@ cAudioManager &AudioManager = *(cAudioManager *)0x880FC0; bool cAudioManager::IsAudioInitialised() const { - return m_bIsInitialised; + return m_bIsInitialised; +} + +void cAudioManager::SetDynamicAcousticModelingStatus(bool status) +{ + m_bDynamicAcousticModelingStatus = status; } void @@ -2694,7 +2699,7 @@ cAudioManager::Service() } STARTPATCHES - +InjectHook(0x57AA00, &cAudioManager::SetDynamicAcousticModelingStatus, PATCH_JUMP); InjectHook(0x57AA50, &cAudioManager::IsAudioInitialised, PATCH_JUMP); InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, PATCH_JUMP); InjectHook(0x56AD20, &cAudioManager::PlayerJustLeftCar, PATCH_JUMP); diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 23f762b8..2d2fced8 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -175,7 +175,7 @@ public: char field_2; char m_bActiveSamples; char field_4; - char m_bDynamicAcousticModelingStatus; + bool m_bDynamicAcousticModelingStatus; char field_6; char field_7; float field_8; @@ -217,6 +217,7 @@ public: int m_nTimeOfRecentCrime; bool IsAudioInitialised() const; + void SetDynamicAcousticModelingStatus(bool status); void GenerateIntegerRandomNumberTable(); void PlayerJustLeftCar(void); |