mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
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:
parent
d5f1d7eed7
commit
3da6af6e38
4 changed files with 15 additions and 7 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue