Bug fixes for configuration handling.

Added erasing double quotes from paths, corrected retriveing
installation path from wine registry. Updated doxygen comments.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
This commit is contained in:
Lukasz Gromanowski 2012-02-23 23:01:42 +01:00
parent d5f1d7eed7
commit 3da6af6e38
4 changed files with 15 additions and 7 deletions

View file

@ -105,11 +105,16 @@ boost::filesystem::path LinuxPath::getInstallPath() const
std::string line;
std::string mwpath;
while (std::getline(file, line) && !line.empty())
while (std::getline(file, line))
{
if (line[0] == '[') // we found an entry
{
isRegEntry = (line.find("Softworks\\Morrowind]") != std::string::npos);
if (isRegEntry)
{
break;
}
isRegEntry = (line.find("Softworks\\\\Morrowind]") != std::string::npos);
}
else if (isRegEntry)
{