mirror of https://github.com/OpenMW/openmw.git
Make the launcher ignore case in bsa names
parent
cdf7bd74d5
commit
7556ab6f90
@ -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