forked from mirror/openmw-tes3mp
Ignore case when detecting legacy extensions (.esm or .exp). Should resolve bug #2227.
This commit is contained in:
parent
6cc9fa2b3f
commit
e5c1c31648
1 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
#include <boost/algorithm/string/case_conv.hpp>
|
||||||
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
@ -72,8 +73,11 @@ void CSVDoc::AdjusterWidget::setName (const QString& name, bool addon)
|
||||||
{
|
{
|
||||||
boost::filesystem::path path (name.toUtf8().data());
|
boost::filesystem::path path (name.toUtf8().data());
|
||||||
|
|
||||||
bool isLegacyPath = (path.extension() == ".esm" ||
|
std::string extension = path.extension().string();
|
||||||
path.extension() == ".esp");
|
boost::algorithm::to_lower(extension);
|
||||||
|
|
||||||
|
bool isLegacyPath = (extension == ".esm" ||
|
||||||
|
extension == ".esp");
|
||||||
|
|
||||||
bool isFilePathChanged = (path.parent_path().string() != mLocalData.string());
|
bool isFilePathChanged = (path.parent_path().string() != mLocalData.string());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue