[sword-cvs] swordreader/src/gui SwordIndex.cpp,1.7,1.8
sword@www.crosswire.org
sword@www.crosswire.org
Sat, 31 Jan 2004 06:00:09 -0700
Update of /cvs/core/swordreader/src/gui
In directory www:/tmp/cvs-serv16437
Modified Files:
SwordIndex.cpp
Log Message:
Location of the data files added, otherwise it will not run
Index: SwordIndex.cpp
===================================================================
RCS file: /cvs/core/swordreader/src/gui/SwordIndex.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- SwordIndex.cpp 29 Jan 2004 06:47:55 -0000 1.7
+++ SwordIndex.cpp 31 Jan 2004 13:00:07 -0000 1.8
@@ -12,8 +12,8 @@
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
-const WCHAR* configDir=L"\\Program Files\\sword";
-const CHAR* swordConfigDir="/Program Files/sword/";
+const WCHAR* configDir=L"\\Program Files\\sword\\books";
+const CHAR* swordConfigDir="/Program Files/sword/books";
//const WCHAR* configFile=L"\\Program Files\\sword\\mods.conf";
//const WCHAR* autoInstallDir=L"\\Program Files\\sword\\newmods";
//const CHAR* swordAutoInstallDir="/Program Files/sword/newmods/";
@@ -75,7 +75,7 @@
// }
texts=new ModuleMap();
__try {
- manager=new sword::SWMgr(new sword::MarkupFilterMgr(sword::FMT_HTMLHREF, sword::ENC_UTF16));
+ manager=new sword::SWMgr(swordConfigDir,true,new sword::MarkupFilterMgr(sword::FMT_HTMLHREF, sword::ENC_UTF16));
// manager->augmentModules("/SD Card");
//get the available bibles out of here