diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index 3537ee30df..bd674c9fd7 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -723,7 +723,7 @@ void Launcher::DataFilesPage::addArchivesFromDir(const QString& path) for (const auto& fileinfo : dir.entryInfoList()) { const auto absPath = fileinfo.absoluteFilePath(); - if (Bsa::CompressedBSAFile::detectVersion(absPath.toStdString()) == Bsa::BSAVER_UNKNOWN) + if (Bsa::CompressedBSAFile::detectVersion(Files::pathFromQString(absPath)) == Bsa::BSAVER_UNKNOWN) continue; const auto fileName = fileinfo.fileName(); diff --git a/apps/launcher/utils/cellnameloader.cpp b/apps/launcher/utils/cellnameloader.cpp index fc970690e8..1c0521bdc8 100644 --- a/apps/launcher/utils/cellnameloader.cpp +++ b/apps/launcher/utils/cellnameloader.cpp @@ -1,6 +1,7 @@ #include "cellnameloader.hpp" #include +#include QSet CellNameLoader::getCellNames(QStringList& contentPaths) { @@ -12,7 +13,7 @@ QSet CellNameLoader::getCellNames(QStringList& contentPaths) { if (contentPath.endsWith(".omwscripts", Qt::CaseInsensitive)) continue; - esmReader.open(contentPath.toStdString()); + esmReader.open(Files::pathFromQString(contentPath)); // Loop through all records while (esmReader.hasMoreRecs())