mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-11 21:36:40 -04:00
using WindowsPath implies utf-8 for boost fs::path
This commit is contained in:
parent
584c121f33
commit
eafdefe999
@ -27,6 +27,7 @@ namespace Files
|
|||||||
WindowsPath::WindowsPath(const std::string& application_name)
|
WindowsPath::WindowsPath(const std::string& application_name)
|
||||||
: mName(application_name)
|
: mName(application_name)
|
||||||
{
|
{
|
||||||
|
boost::filesystem::path::imbue(boost::locale::generator.generate(""));
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::filesystem::path WindowsPath::getUserConfigPath() const
|
boost::filesystem::path WindowsPath::getUserConfigPath() const
|
||||||
@ -41,7 +42,7 @@ boost::filesystem::path WindowsPath::getUserConfigPath() const
|
|||||||
userPath = boost::filesystem::path(bconv::utf_to_utf<char>(path));
|
userPath = boost::filesystem::path(bconv::utf_to_utf<char>(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
return userPath / "MyGames" / mName;
|
return userPath / "My Games" / mName;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::filesystem::path WindowsPath::getUserDataPath() const
|
boost::filesystem::path WindowsPath::getUserDataPath() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user