mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 13:43:43 +00:00
Make sure local path includes trailing slash
Launcher assumes it does
This commit is contained in:
parent
e03e4495e6
commit
7b6af4a893
@ -87,7 +87,7 @@ boost::filesystem::path LinuxPath::getLocalPath() const
|
|||||||
{
|
{
|
||||||
if (readlink(path, &binPath[0], binPath.size()) != -1)
|
if (readlink(path, &binPath[0], binPath.size()) != -1)
|
||||||
{
|
{
|
||||||
localPath = boost::filesystem::path(binPath).parent_path();
|
localPath = boost::filesystem::path(binPath).parent_path() / "/";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ boost::filesystem::path WindowsPath::getLocalPath() const
|
|||||||
|
|
||||||
if (GetModuleFileNameW(nullptr, path, MAX_PATH + 1) > 0)
|
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
|
// lookup exe path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user