summaryrefslogtreecommitdiffstats
path: root/src/core/Game.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2020-05-04 19:33:48 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2020-05-04 19:33:48 +0200
commit8aac6060d36c5dca48c02988b654d4646b175e64 (patch)
tree46dcd7597b7e75b4db1f17e469e0d7e6cb233c88 /src/core/Game.cpp
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-8aac6060d36c5dca48c02988b654d4646b175e64.tar
re3-8aac6060d36c5dca48c02988b654d4646b175e64.tar.gz
re3-8aac6060d36c5dca48c02988b654d4646b175e64.tar.bz2
re3-8aac6060d36c5dca48c02988b654d4646b175e64.tar.lz
re3-8aac6060d36c5dca48c02988b654d4646b175e64.tar.xz
re3-8aac6060d36c5dca48c02988b654d4646b175e64.tar.zst
re3-8aac6060d36c5dca48c02988b654d4646b175e64.zip
Diffstat (limited to 'src/core/Game.cpp')
-rw-r--r--src/core/Game.cpp19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 8633d222..8ab12e3f 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -220,22 +220,9 @@ bool CGame::InitialiseOnceAfterRW(void)
if ( FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == -99 || FrontEndMenuManager.m_nPrefsAudio3DProviderIndex == -2 )
{
CMenuManager::m_PrefsSpeakers = 0;
-
- for ( int32 i = 0; i < DMAudio.GetNum3DProvidersAvailable(); i++ )
- {
- wchar buff[64];
-
- char *name = DMAudio.Get3DProviderName(i);
- AsciiToUnicode(name, buff);
- char *providername = UnicodeToAscii(buff);
- strupr(providername);
-
- if ( !strcmp(providername, "MILES FAST 2D POSITIONAL AUDIO") )
- {
- FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = i;
- break;
- }
- }
+ int8 provider = DMAudio.AutoDetect3DProviders();
+ if ( provider != -1 )
+ FrontEndMenuManager.m_nPrefsAudio3DProviderIndex = provider;
}
DMAudio.SetCurrent3DProvider(FrontEndMenuManager.m_nPrefsAudio3DProviderIndex);