Fix erroneous hard-coded audio setting string

This commit is contained in:
David Rowe 2020-05-07 15:42:30 +12:00
parent da2aefb6b2
commit f83ea58a10

View file

@ -100,7 +100,7 @@ QString getVrSettingString(const char* section, const char* setting) {
vr::IVRSettings * vrSettings = vr::VRSettings();
if (vrSettings) {
vr::EVRSettingsError error = vr::VRSettingsError_None;
vrSettings->GetString(vr::k_pch_audio_Section, vr::k_pch_audio_OnPlaybackDevice_String, BUFFER, BUFFER_SIZE, &error);
vrSettings->GetString(vr::k_pch_audio_Section, setting, BUFFER, BUFFER_SIZE, &error);
if (error == vr::VRSettingsError_None) {
result = BUFFER;
}