summaryrefslogtreecommitdiffstats
path: root/src/core/re3.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-11 14:33:50 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-12 10:39:34 +0200
commitce78081a7f61fed79281fa252da6f29d9f1030dc (patch)
treed07c8d9eed074a2c41898eb9cd28ed8f960e1171 /src/core/re3.cpp
parentAdd define to enable/disable external 3d audio simulation (diff)
downloadre3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.gz
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.bz2
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.lz
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.xz
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.tar.zst
re3-ce78081a7f61fed79281fa252da6f29d9f1030dc.zip
Diffstat (limited to '')
-rw-r--r--src/core/re3.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index b7d89363..4914cd9c 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -493,8 +493,10 @@ bool LoadINISettings()
ReadIniIfExists("Audio", "SfxVolume", &FrontEndMenuManager.m_PrefsSfxVolume);
ReadIniIfExists("Audio", "MusicVolume", &FrontEndMenuManager.m_PrefsMusicVolume);
ReadIniIfExists("Audio", "Radio", &FrontEndMenuManager.m_PrefsRadioStation);
+#ifdef EXTERNAL_3D_SOUND
ReadIniIfExists("Audio", "SpeakerType", &FrontEndMenuManager.m_PrefsSpeakers);
ReadIniIfExists("Audio", "Provider", &FrontEndMenuManager.m_nPrefsAudio3DProviderIndex);
+#endif
ReadIniIfExists("Audio", "DynamicAcoustics", &FrontEndMenuManager.m_PrefsDMA);
ReadIniIfExists("Display", "Brightness", &FrontEndMenuManager.m_PrefsBrightness);
ReadIniIfExists("Display", "DrawDistance", &FrontEndMenuManager.m_PrefsLOD);
@@ -593,8 +595,10 @@ void SaveINISettings()
StoreIni("Audio", "SfxVolume", FrontEndMenuManager.m_PrefsSfxVolume);
StoreIni("Audio", "MusicVolume", FrontEndMenuManager.m_PrefsMusicVolume);
StoreIni("Audio", "Radio", FrontEndMenuManager.m_PrefsRadioStation);
+#ifdef EXTERNAL_3D_SOUND
StoreIni("Audio", "SpeakerType", FrontEndMenuManager.m_PrefsSpeakers);
StoreIni("Audio", "Provider", FrontEndMenuManager.m_nPrefsAudio3DProviderIndex);
+#endif
StoreIni("Audio", "DynamicAcoustics", FrontEndMenuManager.m_PrefsDMA);
StoreIni("Display", "Brightness", FrontEndMenuManager.m_PrefsBrightness);
StoreIni("Display", "DrawDistance", FrontEndMenuManager.m_PrefsLOD);