mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-24 10:23:10 +00:00
Use dedicated function to convert QString to std::filesystem::path II
Some missed conversions identified in review.
This commit is contained in:
parent
f757ac642a
commit
438b03908d
2 changed files with 3 additions and 2 deletions
|
|
@ -723,7 +723,7 @@ void Launcher::DataFilesPage::addArchivesFromDir(const QString& path)
|
||||||
for (const auto& fileinfo : dir.entryInfoList())
|
for (const auto& fileinfo : dir.entryInfoList())
|
||||||
{
|
{
|
||||||
const auto absPath = fileinfo.absoluteFilePath();
|
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;
|
continue;
|
||||||
|
|
||||||
const auto fileName = fileinfo.fileName();
|
const auto fileName = fileinfo.fileName();
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
#include "cellnameloader.hpp"
|
#include "cellnameloader.hpp"
|
||||||
|
|
||||||
#include <components/esm3/loadcell.hpp>
|
#include <components/esm3/loadcell.hpp>
|
||||||
|
#include <components/files/qtconversion.hpp>
|
||||||
|
|
||||||
QSet<QString> CellNameLoader::getCellNames(QStringList& contentPaths)
|
QSet<QString> CellNameLoader::getCellNames(QStringList& contentPaths)
|
||||||
{
|
{
|
||||||
|
|
@ -12,7 +13,7 @@ QSet<QString> CellNameLoader::getCellNames(QStringList& contentPaths)
|
||||||
{
|
{
|
||||||
if (contentPath.endsWith(".omwscripts", Qt::CaseInsensitive))
|
if (contentPath.endsWith(".omwscripts", Qt::CaseInsensitive))
|
||||||
continue;
|
continue;
|
||||||
esmReader.open(contentPath.toStdString());
|
esmReader.open(Files::pathFromQString(contentPath));
|
||||||
|
|
||||||
// Loop through all records
|
// Loop through all records
|
||||||
while (esmReader.hasMoreRecs())
|
while (esmReader.hasMoreRecs())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue