Don't detect audio card when audio is disabled, Fix compilation with --without-audio, fix a few warnings.

Reviewed by: @bb
Comments by: @vladislavbelov, @wraitii
Differential Revision: https://code.wildfiregames.com/D2809
This was SVN commit r24079.
This commit is contained in:
Stan
2020-10-02 07:35:59 +00:00
parent e18c305ba2
commit 1273307b58
4 changed files with 20 additions and 16 deletions
+4 -2
View File
@@ -20,7 +20,9 @@
#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"
@@ -199,10 +201,10 @@ 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);
#endif
ReportSDL(scriptInterface, settings);
ReportGLLimits(scriptInterface, settings);