diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2019-06-30 22:39:54 +0200 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2019-07-04 01:02:00 +0200 |
commit | bd23f2c425896e379a85424f3f506e507cf90df9 (patch) | |
tree | 86a28dbd42312fadbf446d637b003e3f9ff25521 /src/audio | |
parent | SetDynamicAcousticModelingStatus (diff) | |
download | re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar.gz re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar.bz2 re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar.lz re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar.xz re3-bd23f2c425896e379a85424f3f506e507cf90df9.tar.zst re3-bd23f2c425896e379a85424f3f506e507cf90df9.zip |
Diffstat (limited to 'src/audio')
-rw-r--r-- | src/audio/AudioManager.cpp | 11 | ||||
-rw-r--r-- | src/audio/AudioManager.h | 1 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 98a2f82f..e82c2302 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -9,15 +9,21 @@ cAudioManager &AudioManager = *(cAudioManager *)0x880FC0; +void +cAudioManager::PostTerminateGameSpecificShutdown() +{ + ; +} + bool cAudioManager::IsAudioInitialised() const { - return m_bIsInitialised; + return m_bIsInitialised; } void cAudioManager::SetDynamicAcousticModelingStatus(bool status) { - m_bDynamicAcousticModelingStatus = status; + m_bDynamicAcousticModelingStatus = status; } void @@ -2699,6 +2705,7 @@ cAudioManager::Service() } STARTPATCHES +InjectHook(0x569640, &cAudioManager::PostTerminateGameSpecificShutdown, PATCH_JUMP); InjectHook(0x57AA00, &cAudioManager::SetDynamicAcousticModelingStatus, PATCH_JUMP); InjectHook(0x57AA50, &cAudioManager::IsAudioInitialised, PATCH_JUMP); InjectHook(0x57C290, &cAudioManager::GenerateIntegerRandomNumberTable, PATCH_JUMP); diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index 2d2fced8..faae3305 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -216,6 +216,7 @@ public: char field_19195; int m_nTimeOfRecentCrime; + void PostTerminateGameSpecificShutdown(); bool IsAudioInitialised() const; void SetDynamicAcousticModelingStatus(bool status); void GenerateIntegerRandomNumberTable(); |