aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-01-13 18:11:11 +0000
committerJohannes Schickel2009-01-13 18:11:11 +0000
commit094fca2207cc88c5a82ab2ee7320e7345615a926 (patch)
treedc66905a9faaccb7b0177acac3f6243b6ca7e39b /engines/kyra
parent470b07004a4c30e72dac4f96831084cc1eb7bbd7 (diff)
downloadscummvm-rg350-094fca2207cc88c5a82ab2ee7320e7345615a926.tar.gz
scummvm-rg350-094fca2207cc88c5a82ab2ee7320e7345615a926.tar.bz2
scummvm-rg350-094fca2207cc88c5a82ab2ee7320e7345615a926.zip
When reverting to text only mode update the config manager settings accordingly.
svn-id: r35847
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/kyra_hof.cpp5
-rw-r--r--engines/kyra/kyra_mr.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index 48986f1bda..4aa32495ea 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -1469,8 +1469,11 @@ void KyraEngine_HoF::openTalkFile(int newFile) {
if (!_res->loadPakFile(talkFilename)) {
if (speechEnabled()) {
- warning("Couldn't load file '%s' falling back to text only mode", talkFilename);
+ warning("Couldn't load voice file '%s', falling back to text only mode", talkFilename);
_configVoice = 0;
+
+ // Sync the config manager with the new settings
+ writeSettings();
}
}
}
diff --git a/engines/kyra/kyra_mr.cpp b/engines/kyra/kyra_mr.cpp
index acc0421a59..20b0fa7688 100644
--- a/engines/kyra/kyra_mr.cpp
+++ b/engines/kyra/kyra_mr.cpp
@@ -805,8 +805,11 @@ void KyraEngine_MR::openTalkFile(int file) {
_currentTalkFile = file;
if (!_res->loadPakFile(talkFilename)) {
if (speechEnabled()) {
- warning("Couldn't load file '%s' falling back to text only mode", talkFilename);
+ warning("Couldn't load voice file '%s', falling back to text only mode", talkFilename);
_configVoice = 0;
+
+ // Sync the config manager with the new settings
+ writeSettings();
}
}
}