1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 11:45:34 +00:00

Merge pull request #2478 from Capostrophic/path

[Regression] Make sure local path includes trailing slash
This commit is contained in:
Alexei Dobrohotov 2019-08-08 17:08:30 +03:00 committed by GitHub
commit e524771b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const
{
if (readlink(path, &binPath[0], binPath.size()) != -1)
{
localPath = boost::filesystem::path(binPath).parent_path();
localPath = boost::filesystem::path(binPath).parent_path() / "/";
break;
}
}

View file

@ -85,7 +85,7 @@ boost::filesystem::path WindowsPath::getLocalPath() const
if (GetModuleFileNameW(nullptr, path, MAX_PATH + 1) > 0)
{
localPath = boost::filesystem::path(bconv::utf_to_utf<char>(path)).parent_path();
localPath = boost::filesystem::path(bconv::utf_to_utf<char>(path)).parent_path() / "/";
}
// lookup exe path