diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-06-30 22:31:14 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-07-04 01:02:00 +0200 |
commit | 404d9bedd2d28310716a7d35f67408502cf78126 (patch) | |
tree | e9ea6d54914f7b25a73891839c3ff334f3fd525e /src/audio | |
parent | IsAudioInitialised (diff) | |
download | re3-404d9bedd2d28310716a7d35f67408502cf78126.tar re3-404d9bedd2d28310716a7d35f67408502cf78126.tar.gz re3-404d9bedd2d28310716a7d35f67408502cf78126.tar.bz2 re3-404d9bedd2d28310716a7d35f67408502cf78126.tar.lz re3-404d9bedd2d28310716a7d35f67408502cf78126.tar.xz re3-404d9bedd2d28310716a7d35f67408502cf78126.tar.zst re3-404d9bedd2d28310716a7d35f67408502cf78126.zip |
Diffstat (limited to 'src/audio')
-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); |