[Scummvm-cvs-logs] SF.net SVN: scummvm: [27316] scummvm/branches/branch-0-10-0/engines/agi/ predictive.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Sun Jun 10 17:21:53 CEST 2007
Revision: 27316
http://scummvm.svn.sourceforge.net/scummvm/?rev=27316&view=rev
Author: sev
Date: 2007-06-10 08:21:52 -0700 (Sun, 10 Jun 2007)
Log Message:
-----------
Move hardcoded predictive dictionary name to config manager.
Modified Paths:
--------------
scummvm/branches/branch-0-10-0/engines/agi/predictive.cpp
Modified: scummvm/branches/branch-0-10-0/engines/agi/predictive.cpp
===================================================================
--- scummvm/branches/branch-0-10-0/engines/agi/predictive.cpp 2007-06-10 15:21:19 UTC (rev 27315)
+++ scummvm/branches/branch-0-10-0/engines/agi/predictive.cpp 2007-06-10 15:21:52 UTC (rev 27316)
@@ -28,6 +28,7 @@
#include "agi/keyboard.h"
#include "common/func.h"
+#include "common/config-manager.h"
namespace Agi {
@@ -509,7 +510,9 @@
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();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list