mirror of https://github.com/OpenMW/openmw.git
Merge branch 'case-insensitive-bsa-name' into 'master'
Make the launcher ignore case in bsa names Closes #8201 See merge request OpenMW/openmw!4418pull/3236/head
commit
cd2f261ff5
@ -0,0 +1,26 @@
|
||||
|
||||
#include "qtconversion.hpp"
|
||||
|
||||
#include <components/misc/strings/conversion.hpp>
|
||||
|
||||
QString VFS::Path::normalizedToQString(NormalizedView path)
|
||||
{
|
||||
return QString::fromUtf8(path.value().data(), path.value().size());
|
||||
}
|
||||
|
||||
QString VFS::Path::normalizedToQString(Normalized&& path)
|
||||
{
|
||||
return QString::fromUtf8(path.value().data(), path.value().size());
|
||||
}
|
||||
|
||||
VFS::Path::Normalized VFS::Path::normalizedFromQString(QStringView path)
|
||||
{
|
||||
const auto tmp = path.toUtf8();
|
||||
return Normalized{ tmp };
|
||||
}
|
||||
|
||||
VFS::Path::Normalized VFS::Path::normalizedFromQString(QString&& path)
|
||||
{
|
||||
const auto tmp = path.toUtf8();
|
||||
return Normalized{ tmp };
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
#ifndef COMPONENTS_VFS_QTCONVERSION_HPP
|
||||
#define COMPONENTS_VFS_QTCONVERSION_HPP
|
||||
|
||||
#include <QString>
|
||||
|
||||
#include "pathutil.hpp"
|
||||
|
||||
namespace VFS::Path
|
||||
{
|
||||
QString normalizedToQString(NormalizedView path);
|
||||
|
||||
QString normalizedToQString(Normalized&& path);
|
||||
|
||||
Normalized normalizedFromQString(QStringView path);
|
||||
|
||||
Normalized normalizedFromQString(QString&& path);
|
||||
}
|
||||
|
||||
#endif // COMPONENTS_VFS_QTCONVERSION_HPP
|
Loading…
Reference in New Issue