mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-22 21:40:42 +00:00
process paths as UTF-8 in launcher
This commit is contained in:
parent
3721174ae4
commit
28b59f4008
@ -45,7 +45,8 @@ void Launcher::GameSettings::validatePaths()
|
|||||||
Files::PathContainer dataDirs;
|
Files::PathContainer dataDirs;
|
||||||
|
|
||||||
foreach (const QString &path, paths) {
|
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
|
// Parse the data dirs to convert the tokenized paths
|
||||||
|
Loading…
x
Reference in New Issue
Block a user