mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Support separate Splash directory, found in some installation media cabinets
This commit is contained in:
parent
3792b301e9
commit
d30c4edb14
@ -587,6 +587,14 @@ bool Wizard::UnshieldWorker::installComponent(Component component)
|
||||
|
||||
if (component == Wizard::Component_Morrowind)
|
||||
{
|
||||
// Some installations have a separate Splash directory
|
||||
QFileInfo splash(temp.absoluteFilePath(QLatin1String("Splash")));
|
||||
|
||||
if (splash.exists()) {
|
||||
emit textChanged(tr("Extracting: Splash directory"));
|
||||
copyDirectory(splash.absoluteFilePath(), getPath() + QDir::separator() + QLatin1String("Splash"));
|
||||
}
|
||||
|
||||
// Copy Morrowind configuration file
|
||||
QString iniPath(temp.absoluteFilePath(QLatin1String("App Executables")));
|
||||
iniPath.append(QDir::separator() + QLatin1String("Morrowind.ini"));
|
||||
|
Loading…
Reference in New Issue
Block a user