[Scummvm-cvs-logs] SF.net SVN: scummvm: [27315] scummvm/trunk/engines/agi/predictive.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Sun Jun 10 17:21:20 CEST 2007


Revision: 27315
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27315&view=rev
Author:   sev
Date:     2007-06-10 08:21:19 -0700 (Sun, 10 Jun 2007)

Log Message:
-----------
Move hardcoded predictive dictionary name to config manager.

Modified Paths:
--------------
    scummvm/trunk/engines/agi/predictive.cpp

Modified: scummvm/trunk/engines/agi/predictive.cpp
===================================================================
--- scummvm/trunk/engines/agi/predictive.cpp	2007-06-10 15:05:19 UTC (rev 27314)
+++ scummvm/trunk/engines/agi/predictive.cpp	2007-06-10 15:21:19 UTC (rev 27315)
@@ -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