-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'case-insensitive-bsa-name' into 'master'
Make the launcher ignore case in bsa names Closes #8201 See merge request OpenMW/openmw!4418
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |