We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e165a1c commit 863418dCopy full SHA for 863418d
1 file changed
tests/s25Main/UI/uiHelper/uiHelper/uiHelpers.cpp
@@ -4,6 +4,7 @@
4
5
#include "uiHelpers.hpp"
6
#include "Loader.h"
7
+#include "Settings.h"
8
#include "WindowManager.h"
9
#include "desktops/Desktop.h"
10
#include "drivers/VideoDriverWrapper.h"
@@ -31,12 +32,15 @@ void initGUITests()
31
32
VIDEODRIVER.CreateScreen(VideoMode(800, 600), false);
33
BOOST_TEST_CHECKPOINT("Load dummy files");
34
LOADER.LoadDummyGUIFiles();
35
+ LOADER.LoadDummySoundFiles();
36
BOOST_TEST_CHECKPOINT("Switch to Desktop");
37
WINDOWMANAGER.Switch(std::make_unique<DummyDesktop>());
38
BOOST_TEST_CHECKPOINT("Dummy Draw");
39
WINDOWMANAGER.Draw();
40
logAcc.clearLog();
41
}
42
+ // Don't try to play sounds
43
+ SETTINGS.sound.effectsEnabled = false;
44
BOOST_TEST_CHECKPOINT("GUI test initialized");
45
46
0 commit comments