1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-29 15:41:34 +00:00

Use dedicated function to convert QString to std::filesystem::path II

Some missed conversions identified in review.
This commit is contained in:
AnyOldName3 2023-01-20 23:39:30 +00:00
parent f757ac642a
commit 438b03908d
2 changed files with 3 additions and 2 deletions

View file

@ -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();

View file

@ -1,6 +1,7 @@
#include "cellnameloader.hpp"
#include <components/esm3/loadcell.hpp>
#include <components/files/qtconversion.hpp>
QSet<QString> CellNameLoader::getCellNames(QStringList& contentPaths)
{
@ -12,7 +13,7 @@ QSet<QString> 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())