mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-12 05:51:53 -04:00
Add constraint: Bloodmoon.esm requires Tribunal.esm.
This commit is contained in:
parent
6dc202cba3
commit
63af9d848a
@ -467,6 +467,14 @@ void ContentSelectorModel::ContentModel::addFiles(const QString &path)
|
|||||||
file->setFilePath (info.absoluteFilePath());
|
file->setFilePath (info.absoluteFilePath());
|
||||||
file->setDescription(QString::fromUtf8(fileReader.getDesc().c_str()));
|
file->setDescription(QString::fromUtf8(fileReader.getDesc().c_str()));
|
||||||
|
|
||||||
|
// HACK
|
||||||
|
// Bloodmoon.esm requires Tribunal.esm, but this requirement is missing
|
||||||
|
// from the file supplied by Bethesda, so we have to add it ourselves
|
||||||
|
if (file->fileName().compare("Bloodmoon.esm", Qt::CaseInsensitive) == 0)
|
||||||
|
{
|
||||||
|
file->addGameFile(QString::fromUtf8("Tribunal.esm"));
|
||||||
|
}
|
||||||
|
|
||||||
// Put the file in the table
|
// Put the file in the table
|
||||||
addFile(file);
|
addFile(file);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user