|
|
@ -266,12 +266,15 @@ void Config::LauncherSettings::setContentList(const GameSettings& gameSettings)
|
|
|
|
if (!std::ranges::equal(
|
|
|
|
if (!std::ranges::equal(
|
|
|
|
dirs, listDirs, [](const SettingValue& dir, const QString& listDir) { return dir.value == listDir; }))
|
|
|
|
dirs, listDirs, [](const SettingValue& dir, const QString& listDir) { return dir.value == listDir; }))
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
if (files == getContentListFiles(listName) && archives == getArchiveList(listName))
|
|
|
|
constexpr auto compareFiles
|
|
|
|
{
|
|
|
|
= [](const QString& a, const QString& b) { return a.compare(b, Qt::CaseInsensitive) == 0; };
|
|
|
|
|
|
|
|
if (!std::ranges::equal(files, getContentListFiles(listName), compareFiles))
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if (!std::ranges::equal(archives, getArchiveList(listName), compareFiles))
|
|
|
|
|
|
|
|
continue;
|
|
|
|
setCurrentContentListName(listName);
|
|
|
|
setCurrentContentListName(listName);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// otherwise, add content list
|
|
|
|
// otherwise, add content list
|
|
|
|
QString newContentListName(makeNewContentListName());
|
|
|
|
QString newContentListName(makeNewContentListName());
|
|
|
|