aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-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();