1
0
Fork 0
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:
greye 2014-05-22 01:08:03 +04:00
parent 3721174ae4
commit 28b59f4008

View file

@ -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