QTfrontend/util/namegen.cpp
changeset 14935 4accf3e18dbc
parent 14934 0ec0ed2d9045
--- a/QTfrontend/util/namegen.cpp	Tue May 14 01:03:23 2019 +0200
+++ b/QTfrontend/util/namegen.cpp	Tue May 14 01:10:02 2019 +0200
@@ -228,9 +228,9 @@
     team.setHedgehog(HedgehogNumber, hh);
 }
 
-void HWNamegen::teamLocalizedDefaultVoice(HWTeam & team)
+void HWNamegen::teamLocalizedDefaultVoice(HWTeam & team, bool withDLC)
 {
-    team.setVoicepack(getLocalizedDefaultVoice());
+    team.setVoicepack(getLocalizedDefaultVoice(withDLC));
 }
 
 QStringList HWNamegen::dictContents(const QString filename)
@@ -494,13 +494,13 @@
     return Voices[rand()%(Voices.size())];
 }
 
-QString HWNamegen::getLocalizedDefaultVoice()
+QString HWNamegen::getLocalizedDefaultVoice(bool withDLC)
 {
     QStringList entries = DataManager::instance().entryList(
         "Sounds/voices",
         QDir::Dirs | QDir::NoDotAndDotDot,
         QStringList("*"),
-        false);
+        withDLC);
 
     QString loc = QLocale().name();
     if(entries.contains("Default_" + loc))