aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 2af1e3382f..9a788b7e81 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -372,6 +372,10 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
setupGraphics(system);
+ // Init the audio cd manager. It won't be released, so to prevent fragmentation,
+ // we'll create it early on.
+ system.getAudioCDManager();
+
// Init the event manager. As the virtual keyboard is loaded here, it must
// take place after the backend is initiated and the screen has been setup
system.getEventManager()->init();