mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:29:55 +00:00
Make hasMaster() behavior consistent with isGameFile() (fixes #3618)
This commit is contained in:
parent
9b8c56761b
commit
be542507f8
1 changed files with 4 additions and 2 deletions
|
@ -493,8 +493,10 @@ bool Config::GameSettings::hasMaster()
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
QStringList content = mSettings.values(QString(Config::GameSettings::sContentKey));
|
QStringList content = mSettings.values(QString(Config::GameSettings::sContentKey));
|
||||||
for (int i = 0; i < content.count(); ++i) {
|
for (int i = 0; i < content.count(); ++i)
|
||||||
if (content.at(i).contains(".omwgame") || content.at(i).contains(".esm")) {
|
{
|
||||||
|
if (content.at(i).endsWith(QLatin1String(".omwgame"), Qt::CaseInsensitive) || content.at(i).endsWith(QLatin1String(".esm"), Qt::CaseInsensitive))
|
||||||
|
{
|
||||||
result = true;
|
result = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue