aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2007-06-10 15:21:19 +0000
committerEugene Sandulenko2007-06-10 15:21:19 +0000
commit1cbcf395a6c4a87df10f4dfca0ecd5b23b428712 (patch)
treef97dec6738ffb92a1b2cf7f5f8a0715c664ab832
parent4d729a8ea4856a1c25279c9b279f8b317bf97f30 (diff)
downloadscummvm-rg350-1cbcf395a6c4a87df10f4dfca0ecd5b23b428712.tar.gz
scummvm-rg350-1cbcf395a6c4a87df10f4dfca0ecd5b23b428712.tar.bz2
scummvm-rg350-1cbcf395a6c4a87df10f4dfca0ecd5b23b428712.zip
Move hardcoded predictive dictionary name to config manager.
svn-id: r27315
-rw-r--r--engines/agi/predictive.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp
index f70953b5d4..ec9ce78827 100644
--- a/engines/agi/predictive.cpp
+++ b/engines/agi/predictive.cpp
@@ -28,6 +28,7 @@
#include "agi/keyboard.h"
#include "common/func.h"
+#include "common/config-manager.h"
namespace Agi {
@@ -509,7 +510,9 @@ void AgiEngine::loadDict(void) {
char buf[MAXLINELEN];
int words = 0, lines = 0;
- if (!in.open("pred.txt"))
+ ConfMan.registerDefault("predictive_dictionary", "pred.dic");
+
+ if (!in.open(ConfMan.get("predictive_dictionary")))
return;
_searchTreeRoot = new SearchTree();