Bug fixes for configuration handling.

Corrected retrieving installation path from wine registry on MacOS.
Updated doxygen comments.

Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
actorid
Lukasz Gromanowski 13 years ago
parent 3da6af6e38
commit d97854be00

@ -46,7 +46,7 @@ struct LinuxPath
boost::filesystem::path getUserPath() const;
/**
* \brief Return path to the global (system) configuration directory.
* \brief Return path to the global (system) directory where game files could be placed.
*
* \return boost::filesystem::path
*/

@ -105,11 +105,16 @@ boost::filesystem::path MacOsPath::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)
{

Loading…
Cancel
Save