Commit 63fa06d6 by maarten

preforked server

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@357 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent 9856d0de
......@@ -2426,20 +2426,27 @@ void File::loadDictionary(const char* dict)
{
string name(dict);
if (fs::exists(name))
try
{
fs::ifstream is(name);
loadDictionary(is);
break;
if (fs::exists(name))
{
fs::ifstream is(name);
loadDictionary(is);
break;
}
}
catch (...) {}
fs::path dictFile = string("dictionaries/") + dict + ".dic";
if (fs::exists(dictFile))
{
fs::ifstream is(dictFile);
loadDictionary(is);
break;
fs::path dictFile = string("dictionaries/") + dict + ".dic";
if (fs::exists(dictFile))
{
fs::ifstream is(dictFile);
loadDictionary(is);
break;
}
}
catch (...) {}
#if defined(USE_RSRC)
mrsrc::rsrc dictData(dictFile.string());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment