mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 01:29:50 +00:00
Fix userreport detection of sound cards
Differential Revision: https://code.wildfiregames.com/D3025 This was SVN commit r24367.
This commit is contained in:
@@ -20,9 +20,6 @@
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
|
||||
#include "lib/ogl.h"
|
||||
#if CONFIG2_AUDIO
|
||||
#include "lib/snd.h"
|
||||
#endif
|
||||
#include "lib/svn_revision.h"
|
||||
#include "lib/timer.h"
|
||||
#include "lib/utf8.h"
|
||||
@@ -37,6 +34,9 @@
|
||||
# include "lib/sysdep/arch/x86_x64/cache.h"
|
||||
# include "lib/sysdep/arch/x86_x64/topology.h"
|
||||
#endif
|
||||
#if CONFIG2_AUDIO
|
||||
#include "soundmanager/SoundManager.h"
|
||||
#endif
|
||||
#include "ps/CLogger.h"
|
||||
#include "ps/ConfigDB.h"
|
||||
#include "ps/Filesystem.h"
|
||||
@@ -200,8 +200,8 @@ void RunHardwareDetection()
|
||||
scriptInterface.SetProperty(settings, "gfx_card", gfx::CardName());
|
||||
scriptInterface.SetProperty(settings, "gfx_drv_ver", gfx::DriverInfo());
|
||||
#if CONFIG2_AUDIO
|
||||
scriptInterface.SetProperty(settings, "snd_card", snd_card);
|
||||
scriptInterface.SetProperty(settings, "snd_drv_ver", snd_drv_ver);
|
||||
scriptInterface.SetProperty(settings, "snd_card", g_SoundManager->GetSoundCardNames());
|
||||
scriptInterface.SetProperty(settings, "snd_drv_ver", g_SoundManager->GetOpenALVersion());
|
||||
#endif
|
||||
ReportSDL(scriptInterface, settings);
|
||||
|
||||
@@ -271,7 +271,7 @@ void RunHardwareDetection()
|
||||
#endif
|
||||
|
||||
scriptInterface.SetProperty(settings, "timer_resolution", timer_Resolution());
|
||||
|
||||
|
||||
// The version should be increased for every meaningful change.
|
||||
const int reportVersion = 13;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user