mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Support different Tribunal patch .esm location, as seen on German GoTY disk
This commit is contained in:
parent
d30c4edb14
commit
6b9082c6ba
@ -630,6 +630,10 @@ bool Wizard::UnshieldWorker::installComponent(Component component)
|
||||
QFileInfo patch(temp.absoluteFilePath(QLatin1String("Tribunal Patch") + QDir::separator() + QLatin1String("Tribunal.esm")));
|
||||
QFileInfo original(getPath() + QDir::separator() + QLatin1String("Tribunal.esm"));
|
||||
|
||||
// Look for the patch in other places too, it's not always in "Tribunal Patch"
|
||||
if (!patch.exists())
|
||||
patch = QFileInfo(temp.absoluteFilePath(QLatin1String("Tribunal") + QDir::separator() + QLatin1String("Tribunal.esm")));
|
||||
|
||||
if (original.exists() && patch.exists()) {
|
||||
emit textChanged(tr("Extracting: Tribunal patch"));
|
||||
copyFile(patch.absoluteFilePath(), original.absoluteFilePath());
|
||||
|
Loading…
Reference in New Issue
Block a user