mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-04 04:15:33 +00:00
process paths as UTF-8 in launcher
This commit is contained in:
parent
3721174ae4
commit
28b59f4008
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ void Launcher::GameSettings::validatePaths()
|
|||
Files::PathContainer dataDirs;
|
||||
|
||||
foreach (const QString &path, paths) {
|
||||
dataDirs.push_back(Files::PathContainer::value_type(path.toStdString()));
|
||||
QByteArray bytes = path.toUtf8();
|
||||
dataDirs.push_back(Files::PathContainer::value_type(std::string(bytes.constData(), bytes.length())));
|
||||
}
|
||||
|
||||
// Parse the data dirs to convert the tokenized paths
|
||||
|
|
Loading…
Reference in a new issue